mirror of https://github.com/apache/lucene.git
Use the empty docidset provided by DocIdSet.EMPTY_DOCIDSET
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@799582 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f73a4f4324
commit
f8b2f0122c
|
@ -108,10 +108,7 @@ public class BooleanFilter extends Filter
|
|||
if (res !=null)
|
||||
return finalResult(res, reader.maxDoc());
|
||||
|
||||
if (emptyDocIdSet == null)
|
||||
emptyDocIdSet = new OpenBitSetDISI(1);
|
||||
|
||||
return emptyDocIdSet;
|
||||
return DocIdSet.EMPTY_DOCIDSET;
|
||||
}
|
||||
|
||||
// TODO: in 3.0, instead of removing this deprecated
|
||||
|
@ -126,8 +123,6 @@ public class BooleanFilter extends Filter
|
|||
: (DocIdSet) result;
|
||||
}
|
||||
|
||||
private static DocIdSet emptyDocIdSet = null;
|
||||
|
||||
/**
|
||||
* Adds a new FilterClause to the Boolean Filter container
|
||||
* @param filterClause A FilterClause object containing a Filter and an Occur parameter
|
||||
|
|
Loading…
Reference in New Issue