What version of OpenRewrite are you using?
8.53.1
How are you running OpenRewrite?
Moderne
What is the smallest, simplest way to reproduce the problem?
A few examples of OSS repro:
while (replies.receive(10L) != null) {
+ continue;
}
The recipe adds a continue statement to an empty while loop body. It's counterproductive. If anything, it should remove continue if it was the only statement.
What version of OpenRewrite are you using?
8.53.1
How are you running OpenRewrite?
Moderne
What is the smallest, simplest way to reproduce the problem?
A few examples of OSS repro:
while (replies.receive(10L) != null) { + continue; }The recipe adds a
continuestatement to an emptywhileloop body. It's counterproductive. If anything, it should removecontinueif it was the only statement.