new inference: collect additional constraints from lambda return expressions when...
[idea/community.git] / java / java-tests / testData / codeInsight / daemonCodeAnalyzer / lambda / expressions / CacheUnresolvedMethods3.java
1
2 import java.util.*;
3 import java.util.function.Function;
4 import java.util.stream.Collector;
5 import java.util.stream.Collectors;
6
7
8 import java.util.Map;
9 import java.util.stream.Collector;
10
11 class FooBar {
12
13   void p(Map<String, String> m) {
14     m.entrySet().stream()
15       .collect(Collector.of(() -> new HashMap<>(),
16                             (a, e) -> a.put(e.getValue(), e.getKey()),
17                             (l, r) -> {
18                               l.put<caret>All(r);
19                               return l;
20                             }));
21   }
22 }