# | 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) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |