mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 04:09:09 +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
10 lines
233 B
Java
10 lines
233 B
Java
// "Unroll loop" "true"
|
|
class Test {
|
|
void test(String s1, String s2, String s3) {
|
|
fo<caret>r(String s : new String[] {s1, s2, s3})
|
|
if((i+=s.length()) > 10) break;
|
|
System.out.println(i);
|
|
}
|
|
|
|
void foo(boolean b) {}
|
|
} |