Open
Description
In some of our cases, we are currently using the traditional instanceof checks followed by explicit type casting. With the introduction of Pattern Matching in recent Java versions, we can refactor these checks to make the code more concise and readable.
Please see https://github.com/spring-projects/spring-data-couchbase/pull/2017