mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-02 14:38:30 +07:00
GitOrigin-RevId: 088ce28eb3b8cbbce9aa1cfc1b073fef2dab12ce
10 lines
248 B
Java
10 lines
248 B
Java
// "Replace with 'computeIfAbsent()' call" "true"
|
|
import java.util.Map;
|
|
|
|
public class Main {
|
|
|
|
public void test(Map<String, List<String>> map, String key) {
|
|
map.computeIfAbsent(key, k -> new ArrayList<>());
|
|
System.out.println(map);
|
|
}
|
|
} |