Java8MapApiInspection: support some scenarios to produce Map.merge (IDEA-163910)

This commit is contained in:
Tagir Valeev
2016-12-01 14:01:37 +07:00
parent 9b8ab59fab
commit 3a4264a912
15 changed files with 253 additions and 62 deletions
@@ -0,0 +1,8 @@
// "Replace with 'merge' method call" "true"
import java.util.Map;
public class Main {
public void testMerge(Map<String, Integer> map, String key) {
map.merge(key, 1, (a, b) -> a + b)
}
}