mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 16:36:56 +07:00
8 lines
215 B
Java
8 lines
215 B
Java
// "Replace with 'merge' method call" "GENERIC_ERROR_OR_WARNING"
|
|
import java.util.Map;
|
|
|
|
public class Main {
|
|
public void testMerge(Map<String, Integer> map, String key) {
|
|
map.merge(key, 1, Integer::sum)
|
|
}
|
|
} |