mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 19:21:16 +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
12 lines
207 B
Java
12 lines
207 B
Java
// "Unroll loop" "true"
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
void test() {
|
|
fo<caret>r(String s : Collections.singleton("xyz")) {
|
|
if(!s.isEmpty()) {
|
|
System.out.println(s);
|
|
}
|
|
}
|
|
}
|
|
} |