Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/unrollLoop/afterUnrollBreakNoBraces.java
Tagir Valeev 7345e8b0ef UnrollLoopAction: fixes according to review IDEA-CR-24513
1. Check that loop parameter is not written
2. Support List.of, Collections.singleton, Collections.singletonList
3. Support if w/o braces
4. Support break not in last position
2017-09-18 16:37:40 +07:00

14 lines
306 B
Java

// "Unroll loop" "true"
class Test {
void test(String s1, String s2, String s3) {
if ((i += s1.length()) <= 10) {
if ((i += s2.length()) <= 10) {
if ((i += s3.length()) <= 10) {
}
}
}
System.out.println(i);
}
void foo(boolean b) {}
}