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

commit 3b665d62369fc4eedfd8ace0cd2f44472dcd0bce
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Wed Apr 9 10:10:58 2025 -0400

    Better parameter name
---
 .../java/org/apache/commons/compress/archivers/tar/TarFile.java  | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/compress/archivers/tar/TarFile.java 
b/src/main/java/org/apache/commons/compress/archivers/tar/TarFile.java
index 018fa1d97..2a2444c89 100644
--- a/src/main/java/org/apache/commons/compress/archivers/tar/TarFile.java
+++ b/src/main/java/org/apache/commons/compress/archivers/tar/TarFile.java
@@ -546,6 +546,11 @@ private ByteBuffer getRecord() throws IOException {
         return headerBuf;
     }
 
+    /**
+     * Tests whether or not we are at the end-of-file.
+     *
+     * @return whether or not we are at the end-of-file.
+     */
     protected final boolean isAtEOF() {
         return eof;
     }
@@ -681,8 +686,8 @@ private void repositionForwardTo(final long newPosition) 
throws IOException {
         archive.position(newPosition);
     }
 
-    protected final void setAtEOF(final boolean b) {
-        eof = b;
+    protected final void setAtEOF(final boolean eof) {
+        this.eof = eof;
     }
 
     /**

Reply via email to