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

11 lines
291 B
Java

// "Create method 'getKey'" "true-preview"
import java.util.List;
import java.util.Map;
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(k -> <caret>getKey(k)));
}
}