blob: 76d8ec9884b59dbb8d7a43b78ba7e673260d1870 [file]
// "Replace with 'putIfAbsent' method call" "false"
import java.util.HashMap;
import java.util.Map;
public class Main {
public static void main(String[] args) {
Map<String, String> vals = new HashMap<>();
String v = vals.get("foo");
if(v <caret>== null) {
vals.put("foo", v);
}
System.out.println(v);
}
}