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

Comparing jsr166/src/main/java/util/concurrent/ConcurrentHashMap.java (file contents):
Revision 1.33 by dl, Sat Dec 6 00:16:20 2003 UTC vs.
Revision 1.34 by dl, Tue Dec 9 21:43:57 2003 UTC

# Line 1133 | Line 1133 | public class ConcurrentHashMap<K, V> ext
1133          }
1134  
1135          public String toString() {
1136 <            return getKey() + "=" + getValue();
1136 >            // If not acting as entry, just use default toString.
1137 >            if (lastReturned == null)
1138 >                return super.toString();
1139 >            else
1140 >                return getKey() + "=" + getValue();
1141          }
1142  
1143          private boolean eq(Object o1, Object o2) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines