Skip to content

Apache Lucene open-source search software

LUCENE-4055: clear nocommit, normType can be null if there are no postings (3.x does fileExists)

Robert Muir6fef20d76a47
diff --git a/lucene/core/src/java/org/apache/lucene/index/FieldInfo.java b/lucene/core/src/java/org/apache/lucene/index/FieldInfo.java
index 9a3f8863b7a..0ae022a726b 100644
--- a/lucene/core/src/java/org/apache/lucene/index/FieldInfo.java
+++ b/lucene/core/src/java/org/apache/lucene/index/FieldInfo.java
@@ -102,8 +102,6 @@ public final class FieldInfo {
assert normType == null;
assert indexOptions == IndexOptions.DOCS_AND_FREQS_AND_POSITIONS;
} else {
- // nocommit trips:
- //assert omitNorms || normType != null;
assert indexOptions != null;
}