mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-21 14:01:44 +07:00
StreamToLoopInspection: disable for raw types (IDEA-163493), disable for unresolved method references
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// "Replace Stream API chain with loop" "false"
|
||||
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static java.util.Arrays.asList;
|
||||
|
||||
public class Main {
|
||||
private static List<Object> test(List<List> list) {
|
||||
return list.stream().<Object>flatMap(List::stream).coll<caret>ect(Collectors.toList());
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println(test(asList(asList("a", "d"), asList("c", "b"))));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user