mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
testdata for IDEA-123366
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class MyClass {
|
||||
private static void test() {
|
||||
List<String> collect = Arrays.asList("foo", "bar")
|
||||
.stream()
|
||||
.flatMap(MyClass::mapper)
|
||||
.filter(s -> s.startsWith("foo"))
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
private static Stream<String> mapper(String s) {
|
||||
return Stream.of(s);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user