mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
7 lines
215 B
Java
7 lines
215 B
Java
// "Replace with 'putIfAbsent' method call" "true"
|
|
import java.util.Map;
|
|
class Test {
|
|
void m1111(Map<String, Integer> map) {
|
|
int i = !map.cont<caret>ainsKey("asd") ? map.put("asd", 123) : map.get("asd");
|
|
}
|
|
} |