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 cde5f03b96fee2419e079cf2048dc9559be4aa71 Author: Gary Gregory <[email protected]> AuthorDate: Tue Jul 14 13:31:54 2026 -0400 Remove extra parentheses --- src/main/java/org/apache/commons/compress/archivers/tar/TarFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 2b2c3711c..54c36dd3d 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 @@ -619,7 +619,7 @@ protected final void setAtEOF(final boolean eof) { */ private void skipRecordPadding() throws IOException { if (!isDirectory() && currEntry.getSize() > 0 && currEntry.getSize() % recordSize != 0) { - final long padding = recordSize - (currEntry.getSize() % recordSize); + final long padding = recordSize - currEntry.getSize() % recordSize; repositionForwardBy(padding); throwExceptionIfPositionIsNotInArchive(); }
