From bfad0ad2f9173a4bba6c1eaff0d7114bb6c70506 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Mon, 27 Oct 2014 16:32:52 +0000 Subject: [PATCH] remove redundant/outdated check git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1634586 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/core/src/java/org/apache/lucene/index/FieldInfo.java | 3 --- 1 file changed, 3 deletions(-) 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 ba36b8a53ee..9ba54c82f4d 100644 --- a/lucene/core/src/java/org/apache/lucene/index/FieldInfo.java +++ b/lucene/core/src/java/org/apache/lucene/index/FieldInfo.java @@ -165,9 +165,6 @@ public final class FieldInfo { if (omitNorms) { throw new IllegalStateException("non-indexed field '" + name + "' cannot omit norms"); } - if (indexOptions != null) { - throw new IllegalStateException("non-indexed field '" + name + "' cannot have index options"); - } } if (dvGen != -1 && docValueType == null) {