mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-13 11:36:53 +07:00
12 lines
317 B
Java
12 lines
317 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 String testGetOrDefault(Map<String, String> map, String key, Main other) {
|
|
return map.conta<caret>insKey(key) ? map.get(key) : "oops";
|
|
}
|
|
} |