# | Line 612 | Line 612 | public class ConcurrentSkipListMap<K,V> | |
---|---|---|
612 | throw new NullPointerException(); | |
613 | return (comparator != null) | |
614 | ? new ComparableUsingComparator(key, comparator) | |
615 | < | : (Comparable<K>)key; |
615 | > | : (Comparable<? super K>)key; |
616 | } | |
617 | ||
618 | /** | |
# | Line 624 | Line 624 | public class ConcurrentSkipListMap<K,V> | |
624 | if (cmp != null) | |
625 | return cmp.compare(k1, k2); | |
626 | else | |
627 | < | return ((Comparable<K>)k1).compareTo(k2); |
627 | > | return ((Comparable<? super K>)k1).compareTo(k2); |
628 | } | |
629 | ||
630 | /** |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |