604 |
|
* cast key as Comparable, which may cause ClassCastException, |
605 |
|
* which is propagated back to caller. |
606 |
|
*/ |
607 |
< |
private Comparable<? super K> comparable(Object key) throws ClassCastException { |
607 |
> |
private Comparable<? super K> comparable(Object key) |
608 |
> |
throws ClassCastException { |
609 |
|
if (key == null) |
610 |
|
throw new NullPointerException(); |
611 |
|
if (comparator != null) |
2307 |
|
return list; |
2308 |
|
} |
2309 |
|
|
2310 |
< |
static final class KeySet<E> extends AbstractSet<E> implements NavigableSet<E> { |
2310 |
> |
static final class KeySet<E> |
2311 |
> |
extends AbstractSet<E> implements NavigableSet<E> { |
2312 |
|
private final ConcurrentNavigableMap<E,Object> m; |
2313 |
|
KeySet(ConcurrentNavigableMap<E,Object> map) { m = map; } |
2314 |
|
public int size() { return m.size(); } |