lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r358694 - /lucene/java/trunk/src/java/org/apache/lucene/search/PrefixQuery.java
Date Fri, 23 Dec 2005 03:43:41 GMT
Author: yonik
Date: Thu Dec 22 19:43:38 2005
New Revision: 358694

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

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

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/PrefixQuery.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/search/PrefixQuery.java?rev=358694&r1=358693&r2=358694&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/PrefixQuery.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/PrefixQuery.java Thu Dec 22 19:43:38
2005
@@ -85,6 +85,6 @@
 
   /** Returns a hash code value for this object.*/
   public int hashCode() {
-    return Float.floatToIntBits(getBoost()) ^ prefix.hashCode();
+    return Float.floatToIntBits(getBoost()) ^ prefix.hashCode() ^ 0x6634D93C;
   }
 }



Mime
View raw message