mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
9 lines
234 B
Java
9 lines
234 B
Java
// "Replace with 'getOrDefault' method call" "true"
|
|
import java.util.Map;
|
|
|
|
public class Main {
|
|
|
|
public void testGetOrDefault(Map<String, ? extends Number> map, String key) {
|
|
System.out.println(map.getOrDefault(key, null));
|
|
}
|
|
} |