mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
testdata for IDEA-118965
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class IDEA118965 {
|
||||
{
|
||||
Stream<String> words = Arrays.asList("one", "one", "two").stream();
|
||||
List<Map.Entry<String,Integer>> res = words.collect(Collectors.toMap(w -> w, w -> 1, (a, b) -> a + b))
|
||||
.entrySet().stream().filter(e -> e.getValue() > 1).collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
@@ -150,6 +150,10 @@ public class NewLambdaHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testIDEA118965comment() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user