add assert

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1135509 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2011-06-14 12:07:34 +00:00
parent 7614bedc9d
commit 69790c3c0c
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ public class CompoundFileReader extends Directory {
}
public CompoundFileReader(Directory dir, String name, int readBufferSize) throws IOException {
assert !(dir instanceof CompoundFileReader) : "compound file inside of compound file: " + name;
directory = dir;
fileName = name;
this.readBufferSize = readBufferSize;