Files
openide/java/java-tests/testData/refactoring/extractMethodNew/ExtractConditionalContinue_after.java
Alexandr Suhinin a1baa62c1b extract method: fix test so they dont test if conditions
GitOrigin-RevId: 7282f25d9aa56643b42f1ef6a279dd1a7bf53a09
2020-05-06 13:56:03 +00:00

16 lines
317 B
Java

class Test {
public void test(int x, int y) {
while (x < y) {
if (newMethod(x, y)) continue;
x++;
}
}
private boolean newMethod(int x, int y) {
if (x == y) {
System.out.println();
return true;
}
return false;
}
}