mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-30 20:05:16 +07:00
GitOrigin-RevId: 088ce28eb3b8cbbce9aa1cfc1b073fef2dab12ce
14 lines
250 B
Java
14 lines
250 B
Java
// "Replace with 'computeIfAbsent()' call" "true"
|
|
import java.util.*;
|
|
|
|
class Test{
|
|
|
|
int k;
|
|
|
|
void ensureExists(Map<String, List<String>> map, String key) {
|
|
if (!map.conta<caret>insKey(key)) {
|
|
map.put(key, new ArrayList<>());
|
|
}
|
|
}
|
|
|
|
} |