diff --git a/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.java b/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.java index c635eed1b04..b60a4bafc76 100644 --- a/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.java +++ b/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.java @@ -393,7 +393,7 @@ IndexingChain getIndexingChain() { * @see #setMaxBufferedDocs(int) * @see #setRAMBufferSizeMB(double) */ - public IndexWriterConfig setFlushPolicy(FlushPolicy flushPolicy) { + IndexWriterConfig setFlushPolicy(FlushPolicy flushPolicy) { this.flushPolicy = flushPolicy; return this; } @@ -423,7 +423,7 @@ public int getRAMPerThreadHardLimitMB() { } @Override - public FlushPolicy getFlushPolicy() { + FlushPolicy getFlushPolicy() { return flushPolicy; } diff --git a/lucene/core/src/java/org/apache/lucene/index/LiveIndexWriterConfig.java b/lucene/core/src/java/org/apache/lucene/index/LiveIndexWriterConfig.java index 7bcdff9ca55..738cddbded3 100755 --- a/lucene/core/src/java/org/apache/lucene/index/LiveIndexWriterConfig.java +++ b/lucene/core/src/java/org/apache/lucene/index/LiveIndexWriterConfig.java @@ -462,7 +462,7 @@ public int getRAMPerThreadHardLimitMB() { /** * @see IndexWriterConfig#setFlushPolicy(FlushPolicy) */ - public FlushPolicy getFlushPolicy() { + FlushPolicy getFlushPolicy() { return flushPolicy; } @@ -497,7 +497,6 @@ public String toString() { sb.append("mergePolicy=").append(getMergePolicy()).append("\n"); sb.append("indexerThreadPool=").append(getIndexerThreadPool()).append("\n"); sb.append("readerPooling=").append(getReaderPooling()).append("\n"); - sb.append("flushPolicy=").append(getFlushPolicy()).append("\n"); sb.append("perThreadHardLimitMB=").append(getRAMPerThreadHardLimitMB()).append("\n"); return sb.toString(); }