Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/conditionalBreakInInfiniteLoop/beforeToDoWhileComments.java

13 lines
239 B
Java

// "Move condition to loop" "true"
class Main {
public static void main(String[] args) {
int i = 0;
while<caret>(true) {
i++;
if(i < 0) {
// negative i is invalid - stop here
break;
}
}
}
}