mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 16:36:56 +07:00
9 lines
202 B
Java
9 lines
202 B
Java
// "Replace with 'putIfAbsent' method call" "true"
|
|
import java.util.Map;
|
|
class Test {
|
|
void m1(Map<String, Integer> map) {
|
|
if (!map.contai<caret>nsKey("ads")) {
|
|
map.put("ads", i);
|
|
}
|
|
}
|
|
} |