This is an automated email from the ASF dual-hosted git repository. garydgregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-compress.git
commit 1acb51e0264eb602ce6b20d2bf506b368ba7a20b Author: Gary Gregory <[email protected]> AuthorDate: Tue Jul 14 13:30:12 2026 -0400 Use final Remove extra parentheses. --- .../apache/commons/compress/archivers/tar/TarArchiveInputStream.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java index 5bdc5921a..ed6b61006 100644 --- a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java +++ b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java @@ -660,7 +660,7 @@ public boolean markSupported() { * @throws IOException on error. */ @Override - public int read(final byte[] buf, final int offset, int numToRead) throws IOException { + public int read(final byte[] buf, final int offset, final int numToRead) throws IOException { IOUtils.checkFromIndexSize(buf, offset, numToRead); if (numToRead == 0) { return 0; @@ -763,7 +763,7 @@ public long skip(final long n) throws IOException { private void skipRecordPadding() throws IOException { final long entrySize = currEntry != null ? currEntry.getSize() : 0; if (!isDirectory() && entrySize > 0 && entrySize % getRecordSize() != 0) { - final long padding = getRecordSize() - (entrySize % getRecordSize()); + final long padding = getRecordSize() - entrySize % getRecordSize(); final long skipped = IOUtils.skip(in, padding); count(skipped); if (skipped != padding) {
