mirror of https://github.com/apache/lucene.git
LUCENE-8468: Add sliceDescription to the toString() of ByteBuffersIndexInput.
This fixes test failures in TestLucene50CompoundFormat#testResourceNameInsideCompoundFile.
This commit is contained in:
parent
285b743a8b
commit
1a006556e5
|
@ -63,7 +63,7 @@ public final class ByteBuffersIndexInput extends IndexInput implements RandomAcc
|
||||||
public ByteBuffersIndexInput slice(String sliceDescription, long offset, long length) throws IOException {
|
public ByteBuffersIndexInput slice(String sliceDescription, long offset, long length) throws IOException {
|
||||||
ensureOpen();
|
ensureOpen();
|
||||||
return new ByteBuffersIndexInput(in.slice(offset, length),
|
return new ByteBuffersIndexInput(in.slice(offset, length),
|
||||||
"(sliced) offset=" + offset + ", length=" + length + " " + toString());
|
"(sliced) offset=" + offset + ", length=" + length + " " + toString() + " [slice=" + sliceDescription + "]");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue