disable lambda -> method ref if resulted methods are not the same (IDEA-134486)

This commit is contained in:
Anna Kozlova
2014-12-18 14:09:45 +01:00
parent 6e761e661f
commit 79da0849e2
2 changed files with 20 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
// "Replace lambda with method reference" "false"
import java.util.HashMap;
import java.util.Map;
class Test {
public static void main(Map<Integer, Map<Object, Object>> map) {
map.computeIfAbsent(123, key -> new Hash<caret>Map<>());
}
}