improve hashcodes: LUCENE-460

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@358689 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2005-12-23 03:14:58 +00:00
parent 9a9da2f770
commit 99c9289a89
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ public class SpanTermQuery extends SpanQuery {
/** Returns a hash code value for this object.*/
public int hashCode() {
return Float.floatToIntBits(getBoost()) ^ term.hashCode();
return Float.floatToIntBits(getBoost()) ^ term.hashCode() ^ 0xD23FE494;
}
public Spans getSpans(final IndexReader reader) throws IOException {