mirror of https://github.com/apache/lucene.git
adjust hashCode based on feedback from Paul Elschot
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@178149 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2762141057
commit
f9cda45f7d
|
@ -128,9 +128,9 @@ public class SpanNearQuery extends SpanQuery {
|
|||
public int hashCode() {
|
||||
int result;
|
||||
result = clauses.hashCode();
|
||||
result = 29 * result + slop;
|
||||
result = 29 * result + (inOrder ? 1 : 0);
|
||||
result = 29 * result + field.hashCode();
|
||||
result += slop * 29;
|
||||
result += (inOrder ? 1 : 0);
|
||||
result ^= field.hashCode();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue