mirror of https://github.com/apache/lucene.git
LUCENE-5116: Simplify test to use MatchNoBits instead own impl
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1513487 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2baecc2713
commit
7e15dcb8b3
|
@ -1232,10 +1232,7 @@ public class TestAddIndexes extends LuceneTestCase {
|
|||
IndexReader allDeletedReader = new FilterAtomicReader(w.getReader().leaves().get(0).reader()) {
|
||||
@Override
|
||||
public Bits getLiveDocs() {
|
||||
return new Bits() {
|
||||
@Override public int length() { return 1; }
|
||||
@Override public boolean get(int index) { return false; }
|
||||
};
|
||||
return new Bits.MatchNoBits(in.maxDoc());
|
||||
}
|
||||
@Override public boolean hasDeletions() { return true; }
|
||||
@Override public int numDocs() { return 0; }
|
||||
|
|
Loading…
Reference in New Issue