mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
folded functional expression: compare unprocessed types (IDEA-194333)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// "Replace with qualifier" "true"
|
||||
import java.util.List;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class Main {
|
||||
void test(List<List<String>> list) {
|
||||
Function<List<String>, Stream<String>> fn = List::stream;
|
||||
System.out.println(list.stream().flatMap(fn).count());
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Replace with qualifier" "true"
|
||||
import java.util.List;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class Main {
|
||||
void test(List<List<String>> list) {
|
||||
Function<List<String>, Stream<String>> fn = List::stream;
|
||||
System.out.println(list.stream().flatMap(fn::a<caret>pply).count());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user