mirror of https://github.com/apache/lucene.git
fix equals() typo
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@359079 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b374f5ffa2
commit
3852c6263e
|
@ -65,7 +65,7 @@ public class SpanRegexQuery extends SpanQuery {
|
|||
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (!(o instanceof TermQuery)) return false;
|
||||
if (!(o instanceof SpanRegexQuery)) return false;
|
||||
final SpanRegexQuery that = (SpanRegexQuery) o;
|
||||
return term.equals(that.term) && getBoost() == that.getBoost();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue