EmptyBlock
removes } else {
when the if
block was empty, breaking the logic
#314
Labels
EmptyBlock
removes } else {
when the if
block was empty, breaking the logic
#314
What version of OpenRewrite are you using?
I am using
How are you running OpenRewrite?
Maven plugin.
Minimal project to repro the issue: https://github.com/valters/test-openrewrite
Please see steps in readme.
What is the smallest, simplest way to reproduce the problem?
Trying to rewrite code with moderately tricky
if
logic:What did you expect to see?
Either
if
condition should be inverted, or theelse
keyword can't be removed.What did you see instead?
Broken diff after rewrite:
What is the full stack trace of any errors you encountered?
No error. Just incorrect output.
The text was updated successfully, but these errors were encountered: