Apache Lucene open-source search software
LUCENE-8468: Add sliceDescription to the toString() of ByteBuffersIndexInput.
Adrien Grand1a006556e599
diff --git a/lucene/core/src/java/org/apache/lucene/store/ByteBuffersIndexInput.java b/lucene/core/src/java/org/apache/lucene/store/ByteBuffersIndexInput.javaindex 7c87d2489dd..7b899b08166 100644--- a/lucene/core/src/java/org/apache/lucene/store/ByteBuffersIndexInput.java+++ b/lucene/core/src/java/org/apache/lucene/store/ByteBuffersIndexInput.java@@ -63,7 +63,7 @@ public final class ByteBuffersIndexInput extends IndexInput implements RandomAccpublic ByteBuffersIndexInput slice(String sliceDescription, long offset, long length) throws IOException {ensureOpen();return new ByteBuffersIndexInput(in.slice(offset, length),- "(sliced) offset=" + offset + ", length=" + length + " " + toString());+ "(sliced) offset=" + offset + ", length=" + length + " " + toString() + " [slice=" + sliceDescription + "]");}@Override