LUCENE-3027: remove redundant assert

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1092110 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2011-04-14 10:39:38 +00:00
parent 0fb7c3e41f
commit 2133423e2b
1 changed files with 3 additions and 4 deletions

View File

@ -173,10 +173,9 @@ final class DocFieldProcessorPerThread extends DocConsumerPerThread {
if (totalFieldCount >= fieldHash.length/2)
rehash();
} else {
FieldInfo fi = fieldInfos.addOrUpdate(fp.fieldInfo.name, field.isIndexed(), field.isTermVectorStored(),
field.isStorePositionWithTermVector(), field.isStoreOffsetWithTermVector(),
field.getOmitNorms(), false, field.getOmitTermFreqAndPositions());
assert !fi.omitTermFreqAndPositions || !fi.storePayloads;
fieldInfos.addOrUpdate(fp.fieldInfo.name, field.isIndexed(), field.isTermVectorStored(),
field.isStorePositionWithTermVector(), field.isStoreOffsetWithTermVector(),
field.getOmitNorms(), false, field.getOmitTermFreqAndPositions());
}
if (thisFieldGen != fp.lastGen) {