blob: 73dbe0f7d8424be29719d55a0a0ee3cacfd19a47 [file]
// "Replace with 'getOrDefault' method call" "true"
import java.util.Map;
public class Main {
private static final String NONE = "none";
private String str;
public void testGetOrDefault(Map<String, String> map, String key, Main other) {
str = map.get(key);
if(!(str != nul<caret>l)) {
/*
block comment
*/
str = NONE;
}
System.out.println(str);
}
}