Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/collapseIntoLoop/afterBreakOuterLoopLabel.java
Tagir Valeev 30b4657109 CollapseIntoLoopAction: support no-selection mode; disable if code can break the outer loop
GitOrigin-RevId: 87c99d17438c8db668e936f379f2edabde692c80
2020-06-11 10:01:42 +03:00

13 lines
230 B
Java

// "Collapse into loop" "true"
class X {
void test() {
LOOP:
for (int i = 0; i < 10; i++) {
for (int j = 2; j < 6; j++) {
if (i % j == 0) break LOOP;
}
}
}
void foo(Object obj) {}
}