jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r170543 - /incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/state/NodeReferencesId.java
Date Tue, 17 May 2005 08:23:12 GMT
Author: tripod
Date: Tue May 17 01:23:10 2005
New Revision: 170543

URL: http://svn.apache.org/viewcvs?rev=170543&view=rev
Log:
- using proper hashcode

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/state/NodeReferencesId.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/state/NodeReferencesId.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/state/NodeReferencesId.java?rev=170543&r1=170542&r2=170543&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/state/NodeReferencesId.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/state/NodeReferencesId.java
Tue May 17 01:23:10 2005
@@ -66,14 +66,11 @@
     }
 
     /**
-     * Returns zero to satisfy the Object equals/hashCode contract.
-     * This class is mutable and not meant to be used as a hash key.
-     *
-     * @return always zero
-     * @see Object#hashCode()
+     * {@inheritDoc}
      */
     public int hashCode() {
-        return 0;
+        // use hash code of nodeid
+        return super.hashCode();
     }
 
 }



Mime
View raw message