correct copy-paste typo causing TestBasics to loop infinitely

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@290597 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2005-09-21 01:10:27 +00:00
parent f32d7e7786
commit 2007804589
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ public class SpanNotQuery extends SpanQuery {
clone.include = rewrittenInclude;
}
SpanQuery rewrittenExclude = (SpanQuery) exclude.rewrite(reader);
if (rewrittenExclude != include) {
if (rewrittenExclude != exclude) {
if (clone == null) clone = (SpanNotQuery) this.clone();
clone.exclude = rewrittenExclude;
}