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