From 27f2d29a10bcb625db45a11263ed965ecc433391 Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Fri, 23 Dec 2005 03:43:38 +0000 Subject: [PATCH] improve hashcodes: LUCENE-460 git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@358694 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/lucene/search/PrefixQuery.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/lucene/search/PrefixQuery.java b/src/java/org/apache/lucene/search/PrefixQuery.java index 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; } }