mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 01:09:46 +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
15 lines
373 B
Java
15 lines
373 B
Java
// "Unroll loop" "false"
|
|
class Test {
|
|
void test(String s1, String s2, String s3) {
|
|
fo<caret>r(String s : new String[] {s1, s2, s3}) {
|
|
if (!s.isEmpty()) {
|
|
if(s.length() > 5) break;
|
|
}
|
|
System.out.println("Long string: "+s);
|
|
if(s.length() > 20) break;
|
|
System.out.println("Very long string: "+s);
|
|
}
|
|
}
|
|
|
|
void foo(boolean b) {}
|
|
} |