mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-20 13:31:28 +07:00
testdata for IDEA-123731
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
|
||||
class Test{
|
||||
|
||||
public static void main(String[] args) {
|
||||
Map<String, Collection<Integer>> myMap = null;
|
||||
|
||||
myMap.entrySet().stream()
|
||||
.flatMap(entry -> entry.getValue().stream()
|
||||
.map(val -> new Object() {
|
||||
String key = entry.getKey();
|
||||
Integer value = val;
|
||||
}))
|
||||
.forEachOrdered(o -> {
|
||||
final String key = o.key;
|
||||
final Integer value = o.value;
|
||||
System.out.println("key: " + key + " value: " + value);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -186,6 +186,10 @@ public class NewLambdaHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testIDEA123731() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user