| 297 | } |
| 298 | |
| 299 | static class UnmodifiableMap |
| 300 | implements Map |
| 301 | { |
| 302 | private Map c; |
| 303 | |
| 304 | UnmodifiableMap(Map map) |
| 305 | { |
| 306 | this.c = map; |
| 307 | } |
| 308 | |
| 309 | public int size() |
| 310 | { |
| 311 | return c.size(); |
| 312 | } |
| 313 | |
| 314 | public boolean isEmpty() |
| 315 | { |
| 316 | return c.isEmpty(); |
| 317 | } |
| 318 | |
| 319 | public boolean containsKey(Object o) |
| 320 | { |
| 321 | return c.containsKey(o); |
| 322 | } |
| 323 | |
| 324 | public boolean containsValue(Object o) |
| 325 | { |
| 326 | return c.containsValue(o); |
| 327 | } |
| 328 | |
| 329 | public Object get(Object o) |
| 330 | { |
| 331 | return c.get(o); |
| 332 | } |
| 333 | |
| 334 | public Object put(Object o, Object o2) |
| 335 | { |
| 336 | throw new RuntimeException(); |
| 337 | } |
| 338 | |
| 339 | public Object remove(Object o) |
| 340 | { |
| 341 | throw new RuntimeException(); |
| 342 | } |
| 343 | |
| 344 | public void putAll(Map map) |
| 345 | { |
| 346 | throw new RuntimeException(); |
| 347 | } |
| 348 | |
| 349 | public void clear() |
| 350 | { |
| 351 | throw new RuntimeException(); |
| 352 | } |
| 353 | |
| 354 | public Set keySet() |
| 355 | { |
| 356 | return Collections.unmodifiableSet(c.keySet()); |
nothing calls this directly
no outgoing calls
no test coverage detected