mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 16:36:56 +07:00
19 lines
399 B
Java
19 lines
399 B
Java
// "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);
|
|
}
|
|
} |