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

Comparing jsr166/src/main/java/util/TreeMap.java (file contents):
Revision 1.12 by jsr166, Mon May 2 21:44:01 2005 UTC vs.
Revision 1.13 by dl, Wed May 11 11:16:08 2005 UTC

# Line 556 | Line 556 | public class TreeMap<K,V>
556          Entry<K,V> t = root;
557  
558          if (t == null) {
559 +            if (key == null) {
560 +                if (comparator == null)
561 +                    throw new NullPointerException();
562 +                comparator.compare(key, key);
563 +            }
564              incrementSize();
565              root = new Entry<K,V>(key, value, null);
566              return null;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines