mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-01 05:18:06 +07:00
GitOrigin-RevId: 088ce28eb3b8cbbce9aa1cfc1b073fef2dab12ce
9 lines
251 B
Java
9 lines
251 B
Java
// "Replace with 'getOrDefault()' 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);
|
|
}
|
|
} |