mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
14 lines
321 B
Java
14 lines
321 B
Java
// "Replace with 'getOrDefault' method call" "true"
|
|
import java.util.Map;
|
|
|
|
public class Main {
|
|
|
|
public void testGetOrDefault(Map<String, String> map, String key, Main other) {
|
|
String a = null, str = map.get(key);
|
|
if(str == nu<caret>ll) {
|
|
// comment
|
|
str = "";
|
|
}
|
|
System.out.println(str);
|
|
}
|
|
} |