mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-01 07:11:30 +07:00
GitOrigin-RevId: 088ce28eb3b8cbbce9aa1cfc1b073fef2dab12ce
14 lines
253 B
Java
14 lines
253 B
Java
// "Replace with 'putIfAbsent()' call" "true"
|
|
import java.util.Map;
|
|
|
|
class Test{
|
|
|
|
Integer m2(Map<String, Integer> map) {
|
|
if (!map.conta<caret>insKey("asd")) {
|
|
return map.put("asd", 123);
|
|
} else {
|
|
return map.get("asd");
|
|
}
|
|
}
|
|
|
|
} |