blob: def6e23e8ffc06fd9eab2d65d796e7d99a3a2e22 [file]
// "Replace with 'computeIfAbsent' method call" "false"
import java.util.Map;
public class Main {
public void test(Map<String, List<String>> map, String key) {
List<String> list = map.get(key);
if (list == <caret>null) {
map.put(key, new ArrayList<>());
}
System.out.println(list);
}
}