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

Comparing jsr166/src/main/java/util/AbstractMap.java (file contents):
Revision 1.12 by jsr166, Fri Jun 10 16:06:46 2005 UTC vs.
Revision 1.13 by jsr166, Mon Jun 20 18:02:22 2005 UTC

# Line 6 | Line 6
6   */
7  
8   package java.util;
9 + import java.util.*; // for javadoc (till 6280605 is fixed)
10   import java.util.Map.Entry;
11  
12   /**
# Line 404 | Line 405 | public abstract class AbstractMap<K,V> i
405  
406          if (!(o instanceof Map))
407              return false;
408 <        Map<K,V> t = (Map<K,V>) o;
409 <        if (t.size() != size())
408 >        Map<K,V> m = (Map<K,V>) o;
409 >        if (m.size() != size())
410              return false;
411  
412          try {
# Line 415 | Line 416 | public abstract class AbstractMap<K,V> i
416                  K key = e.getKey();
417                  V value = e.getValue();
418                  if (value == null) {
419 <                    if (!(t.get(key)==null && t.containsKey(key)))
419 >                    if (!(m.get(key)==null && m.containsKey(key)))
420                          return false;
421                  } else {
422 <                    if (!value.equals(t.get(key)))
422 >                    if (!value.equals(m.get(key)))
423                          return false;
424                  }
425              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines