mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
testdata for IDEA-136401
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class Test {
|
||||
|
||||
void foo(Stream<String> pairStream) {
|
||||
Map<String, Map<String, Integer>> frequencyMap = pairStream
|
||||
.collect(Collectors.toMap(p -> p, p -> of(p, 1), (m1, m2) -> new HashMap<>(m1)));
|
||||
|
||||
Map<String, Map<String, Integer>> frequencyMap1 = pairStream
|
||||
.collect(Collectors.toMap(p -> p, p -> of(p, 1), (m1, m2) -> new HashMap<>()));
|
||||
}
|
||||
|
||||
public static <K, V> Map<K, V> of(K k1, V v1) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -216,6 +216,10 @@ public class NewLambdaHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testIDEA136401() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user