mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-19 01:09:52 +07:00
9 lines
256 B
Java
9 lines
256 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.<caret>containsKey(key) ? map.get(key) : null);
|
|
}
|
|
} |