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.264 by jsr166, Sun Jan 4 09:15:11 2015 UTC vs.
Revision 1.265 by jsr166, Tue Feb 17 20:03:22 2015 UTC

# Line 596 | Line 596 | public class ConcurrentHashMap<K,V> exte
596              this.next = next;
597          }
598  
599 <        public final K getKey()       { return key; }
600 <        public final V getValue()     { return val; }
601 <        public final int hashCode()   { return key.hashCode() ^ val.hashCode(); }
602 <        public final String toString(){ return key + "=" + val; }
599 >        public final K getKey()        { return key; }
600 >        public final V getValue()      { return val; }
601 >        public final String toString() { return key + "=" + val; }
602 >        public final int hashCode() {
603 >            return key.hashCode() ^ val.hashCode();
604 >        }
605          public final V setValue(V value) {
606              throw new UnsupportedOperationException();
607          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines