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
Thanks for the feedback @lambm ! Great to see that as a runnable example. Indeed a missed case, and would then negatively affect recipes that rely on this too, like rewrite-feature-flags. Appreciate that you're unable to contribute but still wanted to report the issue; I hope in practice at least it was rare? We'll add it to the backlog and hope to get to it soon-ish.
Appreciate the offer to help here @AHB102 ; be sure to read our contributing guidelines. From there fork and check out this project, add the above unit test to SimplifyConstantIfBranchExecutionTest.java and try to make it pass. In this case: if the if block directly contains a return statement, then we can remove any else or following statements.
What version of OpenRewrite are you using?
I am using
How are you running OpenRewrite?
Java test case
What is the smallest, simplest way to reproduce the problem?
What did you expect to see?
What did you see instead?
What is the full stack trace of any errors you encountered?
No error, just invalid output.
Are you interested in contributing a fix to OpenRewrite?
Unable to contribute.
The text was updated successfully, but these errors were encountered: