mirror of https://github.com/apache/lucene.git
improve hashcodes: LUCENE-460
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@358694 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
75c81da538
commit
27f2d29a10
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue