mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
StreamToLoopInspection: handle labeled expression statement (found by property testing)
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
// "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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user