mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 02:15:59 +07:00
10 lines
253 B
Java
10 lines
253 B
Java
// "Replace with 'computeIfAbsent' method 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);
|
|
}
|
|
} |