From 3852c6263e49c159ee5b0eed6d3a0be1cb737fde Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Mon, 26 Dec 2005 17:20:02 +0000 Subject: [PATCH] fix equals() typo git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@359079 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/lucene/search/regex/SpanRegexQuery.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/lucene/search/regex/SpanRegexQuery.java b/src/java/org/apache/lucene/search/regex/SpanRegexQuery.java index eef905e1c1b..a679a5225bc 100644 --- a/src/java/org/apache/lucene/search/regex/SpanRegexQuery.java +++ b/src/java/org/apache/lucene/search/regex/SpanRegexQuery.java @@ -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(); }