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:
Yonik Seeley 2005-12-26 17:20:02 +00:00
parent b374f5ffa2
commit 3852c6263e
1 changed files with 1 additions and 1 deletions

View File

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