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:
Erik Hatcher 2005-05-24 10:15:23 +00:00
parent 2762141057
commit f9cda45f7d
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}