Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMethodFromUsage/afterPolyExpr2.java
Tagir Valeev 31990e349d [java-intention] More tests for IDEA-314907
GitOrigin-RevId: 2ca51ee0d02ff7d36cd59efb8ce6b81af2372ea7
2023-03-20 17:26:01 +00:00

16 lines
398 B
Java

// "Create method 'getKey'" "true-preview"
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
class X {
void x() {
Map<Double, List<String>> map = Stream.of("x").collect(Collectors.groupingBy(getKey()));
}
private Function<? super String, Double> getKey() {
return null;
}
}