mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-08 21:06:52 +07:00
14 lines
255 B
Java
14 lines
255 B
Java
// "Replace with 'computeIfAbsent' method 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<>());
|
|
}
|
|
}
|
|
|
|
} |