mirror of https://github.com/apache/lucene.git
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:
parent
fc44f0dc3c
commit
21fba4ee7b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue