From 297cc4a275ec978dbf94cb2e4cd2d683ff8c5d2a Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Mon, 16 Jan 2012 18:45:01 +0000 Subject: [PATCH] LUCENE-3684: use UOE not IAE git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1232110 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/codecs/preflexrw/PreFlexRWFieldsWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/src/test-framework/java/org/apache/lucene/codecs/preflexrw/PreFlexRWFieldsWriter.java b/lucene/src/test-framework/java/org/apache/lucene/codecs/preflexrw/PreFlexRWFieldsWriter.java index 6dceaf08c4f..801c20efe19 100644 --- a/lucene/src/test-framework/java/org/apache/lucene/codecs/preflexrw/PreFlexRWFieldsWriter.java +++ b/lucene/src/test-framework/java/org/apache/lucene/codecs/preflexrw/PreFlexRWFieldsWriter.java @@ -89,7 +89,7 @@ class PreFlexRWFieldsWriter extends FieldsConsumer { public TermsConsumer addField(FieldInfo field) throws IOException { assert field.number != -1; if (field.indexOptions.compareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS) >= 0) { - throw new IllegalArgumentException("this codec cannot index offsets"); + throw new UnsupportedOperationException("this codec cannot index offsets"); } //System.out.println("w field=" + field.name + " storePayload=" + field.storePayloads + " number=" + field.number); return new PreFlexTermsWriter(field);