Fix equals() and hashCode() of FuzzyQuery (boost etc. missing, so use super methods)

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@791264 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2009-07-05 16:15:00 +00:00
parent fc44f0dc3c
commit 21fba4ee7b
1 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ public class FuzzyQuery extends MultiTermQuery {
public int hashCode() {
final int prime = 31;
int result = 1;
int result = super.hashCode();
result = prime * result + Float.floatToIntBits(minimumSimilarity);
result = prime * result + prefixLength;
result = prime * result + ((term == null) ? 0 : term.hashCode());
@ -221,7 +221,7 @@ public class FuzzyQuery extends MultiTermQuery {
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
if (!super.equals(obj))
return false;
if (getClass() != obj.getClass())
return false;