diff --git a/lucene/core/src/java/org/apache/lucene/store/BufferedIndexInput.java b/lucene/core/src/java/org/apache/lucene/store/BufferedIndexInput.java index 9626faf2ccc..e972f2975bc 100644 --- a/lucene/core/src/java/org/apache/lucene/store/BufferedIndexInput.java +++ b/lucene/core/src/java/org/apache/lucene/store/BufferedIndexInput.java @@ -355,14 +355,10 @@ public abstract class BufferedIndexInput extends IndexInput { */ public static int bufferSize(IOContext context) { switch (context.context) { - case DEFAULT: - case FLUSH: - case READ: - return BUFFER_SIZE; case MERGE: return MERGE_BUFFER_SIZE; default: - throw new AssertionError("unknown IOContext " + context.context); + return BUFFER_SIZE; } }