mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
Java8MapApiInspection: support some scenarios to produce Map.merge (IDEA-163910)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user