From d5da8f22fff379604c29777735cb94588824af2b Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Fri, 15 Mar 2013 21:46:02 +0100 Subject: [PATCH] improve TODO comment --- .../org/apache/lucene/store/RateLimitedFSDirectory.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/lucene/store/RateLimitedFSDirectory.java b/src/main/java/org/apache/lucene/store/RateLimitedFSDirectory.java index fa7fd68ee13..3e6c74625ae 100644 --- a/src/main/java/org/apache/lucene/store/RateLimitedFSDirectory.java +++ b/src/main/java/org/apache/lucene/store/RateLimitedFSDirectory.java @@ -18,11 +18,11 @@ */ package org.apache.lucene.store; +import org.apache.lucene.store.IOContext.Context; + import java.io.IOException; import java.util.Collection; -import org.apache.lucene.store.IOContext.Context; - public final class RateLimitedFSDirectory extends Directory { private final FSDirectory delegate; @@ -31,7 +31,7 @@ public final class RateLimitedFSDirectory extends Directory { private final StoreRateLimiting.Listener rateListener; public RateLimitedFSDirectory(FSDirectory wrapped, StoreRateLimiting.Provider rateLimitingProvider, - StoreRateLimiting.Listener rateListener) { + StoreRateLimiting.Listener rateListener) { this.delegate = wrapped; this.rateLimitingProvider = rateLimitingProvider; this.rateListener = rateListener; @@ -160,7 +160,7 @@ public final class RateLimitedFSDirectory extends Directory { private final StoreRateLimiting.Listener rateListener; RateLimitedIndexOutput(final RateLimiter rateLimiter, final StoreRateLimiting.Listener rateListener, final IndexOutput delegate) { - // TODO should we make buffer size configurable + // TODO if Lucene exposed in BufferedIndexOutput#getBufferSize, we could initialize it if the delegate is buffered if (delegate instanceof BufferedIndexOutput) { bufferedDelegate = (BufferedIndexOutput) delegate; this.delegate = delegate;