(@NotNull Map<?, ?> map, @NotNull Object key)
| 112 | } |
| 113 | |
| 114 | private static int getInt(@NotNull Map<?, ?> map, @NotNull Object key) { |
| 115 | Object num = map.get(key); |
| 116 | if (num instanceof Integer) { |
| 117 | return (Integer) num; |
| 118 | } |
| 119 | throw new NoSuchElementException(map + " does not contain " + key); |
| 120 | } |
| 121 | |
| 122 | private static boolean getBool(@NotNull Map<?, ?> map, @NotNull Object key, boolean def) { |
| 123 | Object bool = map.get(key); |
no test coverage detected