lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r358695 - /lucene/java/trunk/src/java/org/apache/lucene/search/MatchAllDocsQuery.java
Date Fri, 23 Dec 2005 03:51:06 GMT
Author: yonik
Date: Thu Dec 22 19:51:03 2005
New Revision: 358695

URL: http://svn.apache.org/viewcvs?rev=358695&view=rev
Log:
improve hashcodes: LUCENE-460

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/search/MatchAllDocsQuery.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/MatchAllDocsQuery.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/search/MatchAllDocsQuery.java?rev=358695&r1=358694&r2=358695&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/MatchAllDocsQuery.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/MatchAllDocsQuery.java Thu Dec 22
19:51:03 2005
@@ -147,6 +147,6 @@
   }
 
   public int hashCode() {
-    return Float.floatToIntBits(getBoost());
+    return Float.floatToIntBits(getBoost()) ^ 0x1AA71190;
   }
 }



Mime
View raw message