Skip to content

Refactor to instanceof pattern variable #2018

Open
@arefbehboudi

Description

@arefbehboudi

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions