mirror of https://github.com/apache/lucene.git
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:
parent
9a9da2f770
commit
99c9289a89
|
@ -65,7 +65,7 @@ public class SpanTermQuery extends SpanQuery {
|
||||||
|
|
||||||
/** Returns a hash code value for this object.*/
|
/** Returns a hash code value for this object.*/
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Float.floatToIntBits(getBoost()) ^ term.hashCode();
|
return Float.floatToIntBits(getBoost()) ^ term.hashCode() ^ 0xD23FE494;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Spans getSpans(final IndexReader reader) throws IOException {
|
public Spans getSpans(final IndexReader reader) throws IOException {
|
||||||
|
|
Loading…
Reference in New Issue