mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
12 lines
227 B
Java
12 lines
227 B
Java
// "Replace with 'computeIfAbsent' method call" "true"
|
|
import java.util.*;
|
|
|
|
class Test{
|
|
|
|
int k;
|
|
|
|
void ensureExists(Map<String, List<String>> map, String key) {
|
|
map.computeIfAbsent(key, k1 -> new ArrayList<>());
|
|
}
|
|
|
|
} |