mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 10:51:06 +07:00
15 lines
340 B
Java
15 lines
340 B
Java
// "Fix all 'Stream API call chain can be replaced with loop' problems in file" "true"
|
|
|
|
import java.util.Arrays;
|
|
import java.util.stream.Stream;
|
|
|
|
public class Main {
|
|
void test() {
|
|
for (String s : Arrays.asList("foo", "bar", "baz")) {
|
|
System.out.println(s);
|
|
}
|
|
|
|
String s = "xyz";
|
|
System.out.println(s);
|
|
}
|
|
} |