mirror of https://github.com/apache/lucene.git
improve assert
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1292268 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
307cf98e1f
commit
460c345d94
|
@ -532,7 +532,7 @@ public class IndexWriter implements Closeable, TwoPhaseCommit {
|
|||
|
||||
public synchronized boolean delete(int docID) {
|
||||
assert liveDocs != null;
|
||||
assert docID >= 0 && docID < liveDocs.length();
|
||||
assert docID >= 0 && docID < liveDocs.length() : "out of bounds: docid=" + docID + ",liveDocsLength=" + liveDocs.length();
|
||||
assert !shared;
|
||||
final boolean didDelete = liveDocs.get(docID);
|
||||
if (didDelete) {
|
||||
|
|
Loading…
Reference in New Issue