commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r617929 - /commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/model/dom/DOMNodePointer.java
Date Sat, 02 Feb 2008 23:52:46 GMT
Author: mbenson
Date: Sat Feb  2 15:52:36 2008
New Revision: 617929

URL: http://svn.apache.org/viewvc?rev=617929&view=rev
Log:
use an equals-compatible hashCode

Modified:
    commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/model/dom/DOMNodePointer.java

Modified: commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/model/dom/DOMNodePointer.java
URL: http://svn.apache.org/viewvc/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/model/dom/DOMNodePointer.java?rev=617929&r1=617928&r2=617929&view=diff
==============================================================================
--- commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/model/dom/DOMNodePointer.java
(original)
+++ commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/model/dom/DOMNodePointer.java
Sat Feb  2 15:52:36 2008
@@ -725,7 +725,7 @@
      * {@inheritDoc}
      */
     public int hashCode() {
-        return System.identityHashCode(node);
+        return node.hashCode();
     }
 
     /**



Mime
View raw message