Files
openide/java/java-tests/testData/refactoring/extractMethodNew/ExtractConditionalBreak_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

17 lines
345 B
Java

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