blob: ada4e8108f6fecc56f95595f24e6e796a9029066 [file]
// "Replace with 'computeIfAbsent' method call" "true"
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(map);
}
}