mirror of https://github.com/apache/lucene.git
remove redundant code
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1656290 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1529c57ca1
commit
7f34c90908
|
@ -257,16 +257,6 @@ public final class BlockTreeTermsWriter extends FieldsConsumer {
|
|||
{
|
||||
validateSettings(minItemsInBlock, maxItemsInBlock);
|
||||
|
||||
if (minItemsInBlock <= 1) {
|
||||
throw new IllegalArgumentException("minItemsInBlock must be >= 2; got " + minItemsInBlock);
|
||||
}
|
||||
if (minItemsInBlock > maxItemsInBlock) {
|
||||
throw new IllegalArgumentException("maxItemsInBlock must be >= minItemsInBlock; got maxItemsInBlock=" + maxItemsInBlock + " minItemsInBlock=" + minItemsInBlock);
|
||||
}
|
||||
if (maxItemsInBlock < 2*(minItemsInBlock-1)) {
|
||||
throw new IllegalArgumentException("maxItemsInBlock must be at least 2*(minItemsInBlock-1); got maxItemsInBlock=" + maxItemsInBlock + " minItemsInBlock=" + minItemsInBlock);
|
||||
}
|
||||
|
||||
this.maxDoc = state.segmentInfo.getDocCount();
|
||||
this.fieldInfos = state.fieldInfos;
|
||||
this.minItemsInBlock = minItemsInBlock;
|
||||
|
|
Loading…
Reference in New Issue