ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ConcurrentSkipListMap.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ConcurrentSkipListMap.java (file contents):
Revision 1.17 by jsr166, Mon May 2 18:36:04 2005 UTC vs.
Revision 1.18 by jsr166, Mon May 2 21:44:01 2005 UTC

# 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      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines