Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor to instanceof pattern variable #2018

Open
arefbehboudi opened this issue Jan 14, 2025 · 0 comments
Open

Refactor to instanceof pattern variable #2018

arefbehboudi opened this issue Jan 14, 2025 · 0 comments
Labels
status: waiting-for-triage An issue we've not yet triaged

Comments

@arefbehboudi
Copy link

arefbehboudi commented Jan 14, 2025

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

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 14, 2025
arefbehboudi added a commit to arefbehboudi/spring-data-couchbase that referenced this issue Jan 15, 2025
arefbehboudi added a commit to arefbehboudi/spring-data-couchbase that referenced this issue Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

2 participants