mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 11:47:50 +07:00
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
11 lines
220 B
Java
11 lines
220 B
Java
// "Unroll loop" "true"
|
|
class Test {
|
|
void test() {
|
|
fo<caret>r(Object x : new Object[] {"one", 1, 1.0, 1.0f}) {
|
|
if(Math.random() > 0.5) break;
|
|
System.out.println(x);
|
|
}
|
|
}
|
|
|
|
void foo(boolean b) {}
|
|
} |