mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-19 01:09:52 +07:00
8 lines
198 B
Java
8 lines
198 B
Java
// "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) -> b + a)
|
|
}
|
|
} |