mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-23 18:03:06 +07:00
fix for IDEA-163932 Map.get suggested replacement with Map.getOrDefault is misleading
13 lines
351 B
Java
13 lines
351 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 void testGetOrDefault(Map<String, String> map, String key, Main other) {
|
|
/* output none */
|
|
System.out.println(/* output map value */ map.getOrDefault("k", NONE));
|
|
}
|
|
} |