mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 08:34:22 +07:00
GitOrigin-RevId: 088ce28eb3b8cbbce9aa1cfc1b073fef2dab12ce
12 lines
290 B
Java
12 lines
290 B
Java
// "Replace with 'getOrDefault()' call" "true"
|
|
import java.util.Map;
|
|
|
|
public class Main {
|
|
private static final String NONE = "none";
|
|
|
|
private String str;
|
|
|
|
public String testGetOrDefault(Map<String, String> map, String key, Main other) {
|
|
return map.getOrDefault(key, "oops");
|
|
}
|
|
} |