Open delanym opened 1 month ago
That's unfortunate and definitely something to fix; thanks for the clear example! Is this something you'd be looking to help fix?
I can't promise anything - we've just migrated JDK from 11 to 21 so my hands are full. I guess its always like that though. What I feel compelled to do is write the ticket.
Logging the issue is much appreciated, and understandable that you have other things to get to as well. Just good to know what to expect such that there's at least no duplicated efforts. Keep em coming! :)
Hi @timtebeek , I have created a PR to address this issue and added the testcase. could you please review this
If default comes before a case and simply continues into that case
refactoring with
org.openrewrite.staticanalysis.DefaultComesLast
fromorg.openrewrite.recipe:rewrite-static-analysis:1.6.0
results in a duplicate case and code duplication