This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-compress.git
The following commit(s) were added to refs/heads/master by this push: new 85feef5f6 Better local variable name 85feef5f6 is described below commit 85feef5f6dea43589bbe2de20d7ad8c34d0259c9 Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Sat Mar 1 11:32:47 2025 -0500 Better local variable name --- src/main/java/org/apache/commons/compress/utils/IOUtils.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/compress/utils/IOUtils.java b/src/main/java/org/apache/commons/compress/utils/IOUtils.java index 81f8f9150..d6e96fa04 100644 --- a/src/main/java/org/apache/commons/compress/utils/IOUtils.java +++ b/src/main/java/org/apache/commons/compress/utils/IOUtils.java @@ -245,17 +245,17 @@ public static byte[] readRange(final InputStream input, final int length) throws */ public static byte[] readRange(final ReadableByteChannel input, final int length) throws IOException { final ByteArrayOutputStream output = new ByteArrayOutputStream(); - final ByteBuffer b = ByteBuffer.allocate(Math.min(length, org.apache.commons.io.IOUtils.DEFAULT_BUFFER_SIZE)); + final ByteBuffer byteBuffer = ByteBuffer.allocate(Math.min(length, org.apache.commons.io.IOUtils.DEFAULT_BUFFER_SIZE)); int read = 0; while (read < length) { // Make sure we never read more than len bytes - b.limit(Math.min(length - read, b.capacity())); - final int readCount = input.read(b); + byteBuffer.limit(Math.min(length - read, byteBuffer.capacity())); + final int readCount = input.read(byteBuffer); if (readCount <= 0) { break; } - output.write(b.array(), 0, readCount); - b.rewind(); + output.write(byteBuffer.array(), 0, readCount); + byteBuffer.rewind(); read += readCount; } return output.toByteArray();