Apache Solr open-source search software
improve hashcodes: LUCENE-460
Yonik Seeley27f2d29a10bc
diff --git a/src/java/org/apache/lucene/search/PrefixQuery.java b/src/java/org/apache/lucene/search/PrefixQuery.javaindex 657ba234a5a..1e6cfde9b17 100644--- a/src/java/org/apache/lucene/search/PrefixQuery.java+++ b/src/java/org/apache/lucene/search/PrefixQuery.java@@ -85,6 +85,6 @@ public class PrefixQuery extends Query {/** Returns a hash code value for this object.*/public int hashCode() {- return Float.floatToIntBits(getBoost()) ^ prefix.hashCode();+ return Float.floatToIntBits(getBoost()) ^ prefix.hashCode() ^ 0x6634D93C;}}