diff --git a/lucene/core/src/test/org/apache/lucene/codecs/perfield/TestPerFieldPostingsFormat2.java b/lucene/core/src/test/org/apache/lucene/codecs/perfield/TestPerFieldPostingsFormat2.java index 959a2b74118..804f5078559 100644 --- a/lucene/core/src/test/org/apache/lucene/codecs/perfield/TestPerFieldPostingsFormat2.java +++ b/lucene/core/src/test/org/apache/lucene/codecs/perfield/TestPerFieldPostingsFormat2.java @@ -342,7 +342,7 @@ public class TestPerFieldPostingsFormat2 extends LuceneTestCase { MergeRecordingPostingsFormatWrapper pf1 = new MergeRecordingPostingsFormatWrapper(TestUtil.getDefaultPostingsFormat()); MergeRecordingPostingsFormatWrapper pf2 = new MergeRecordingPostingsFormatWrapper(TestUtil.getDefaultPostingsFormat()); - IndexWriterConfig iwc = newIndexWriterConfig(); + IndexWriterConfig iwc = new IndexWriterConfig(); iwc.setCodec(new AssertingCodec() { @Override public PostingsFormat getPostingsFormatForField(String field) {