Files
openide/java/java-tests/testData/codeInsight/invertIfCondition/beforeContinueWithLabel.java
Mikhail Pyltsin 3e995dc765 [java-inspections] --IDEA-320618 Invert if generates incorrect code inside loops with label (java)
GitOrigin-RevId: 8670f5b5414dba816a6254f4b0fc03acf79194d6
2023-07-21 08:38:38 +00:00

13 lines
309 B
Java

// "Invert 'if' condition" "true-preview"
class A {
void foo () {
outer: for(int i = 0; i < 5; i++) {
for(int j = 0; j < 5; j++) {
i<caret>f (j == 3)
continue outer;
System.out.println("J:" + j);
}
System.out.println("I:" + i);
}
}
}