mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
# Conflicts: # CIDR/clion/src/com/jetbrains/cidr/cpp/toolchains/MSVC.java GitOrigin-RevId: f3593b526d1870f32b3f1451cab0c6a653e5beb5
10 lines
271 B
Java
10 lines
271 B
Java
// "Use 'computeIfAbsent' method with functional argument" "false"
|
|
|
|
import java.util.Map;
|
|
|
|
class Test {
|
|
public void test(Map<String, List<Integer>> map, String key) {
|
|
List<Integer> old = map.putIfAbsent(key, new ArrayL<caret>ist<>());
|
|
map.get(key).add(0);
|
|
}
|
|
} |