mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-29 18:17:08 +07:00
GitOrigin-RevId: 088ce28eb3b8cbbce9aa1cfc1b073fef2dab12ce
14 lines
324 B
Java
14 lines
324 B
Java
// "Replace with 'merge()' call" "false"
|
|
import java.util.Map;
|
|
|
|
public class Main {
|
|
public void testMerge(Map<String, Integer> map, String key, int add) {
|
|
Integer val = map.get(key);
|
|
if(val<caret> == null) {
|
|
map.put(key, add);
|
|
} else {
|
|
map.put(key, add + 1)
|
|
}
|
|
System.out.println(val);
|
|
}
|
|
} |