mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 20:07:01 +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
19 lines
509 B
Java
19 lines
509 B
Java
// "Unroll loop" "true"
|
|
class Test {
|
|
void test() {
|
|
if (!(Math.random() > 0.5)) {
|
|
System.out.println((Object) "one");
|
|
if (!(Math.random() > 0.5)) {
|
|
System.out.println((Object) 1);
|
|
if (!(Math.random() > 0.5)) {
|
|
System.out.println((Object) 1.0);
|
|
if (!(Math.random() > 0.5)) {
|
|
System.out.println((Object) 1.0f);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
void foo(boolean b) {}
|
|
} |