Files
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

13 lines
218 B
Java

// "Unroll loop" "false"
class Test {
void test() {
f<caret>or(int x : new int[]{1, 2, 3}) {
System.out.println(x);
x = 6;
x++;
System.out.println(x);
}
}
void foo(boolean b) {}
}