testdata for IDEA-136708

This commit is contained in:
Anna Kozlova
2015-10-02 21:30:07 +02:00
parent 75c14f25b6
commit 010dd7c48d
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import java.util.HashMap;
import java.util.Map;
import java.util.stream.Collectors;
class Test {
{
Map<?, ?> map = new HashMap<>();
map.entrySet().stream().collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
map.entrySet().stream().collect(Collectors.toMap((entry) -> entry.getKey(), Map.Entry::getValue));
map.entrySet().stream().collect(Collectors.toMap((entry) -> entry.getKey(), (entry) -> entry.getValue()));
map.entrySet().stream().collect(Collectors.toMap(Map.Entry::getKey, (entry) -> entry.getValue()));
}
}