You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A little too eager closing issues here; while we support parsing pattern matching in switch, we should also support migrating to that style. We should now be able to convert the above into runnable unit tests on a draft PR to get that migration work going as well.
What problem are you trying to solve?
Add recipe for JEP 441: Pattern Matching for switch to improve Java 21 migration (and possibly also for the related JEP 440: Record Patterns).
Describe the solution you'd like
The two examples copied from the JEP 441: Pattern Matching for switch project (there are more):
instanceof
Switches and null
Have you considered any alternatives or workarounds?
no
Additional context
Are you interested in contributing this feature to OpenRewrite?
Not at the moment
The text was updated successfully, but these errors were encountered: