mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-08 12:36:52 +07:00
15 lines
405 B
Java
15 lines
405 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);
|
|
// before if
|
|
if(str == nu<caret>ll) {
|
|
// comment
|
|
str = "";
|
|
/* after comment */
|
|
}
|
|
System.out.println(str);
|
|
}
|
|
} |