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 05c11113944f7ab46ddbf0b4c1a5fb272ccee4af Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Apr 27 15:09:20 2024 -0400 Better local name Whitespace --- .../compress/archivers/ar/ArArchiveOutputStream.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java b/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java index fd3052f0c..b8905a2ea 100644 --- a/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java +++ b/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java @@ -188,16 +188,16 @@ public class ArArchiveOutputStream extends ArchiveOutputStream<ArArchiveEntry> { private void writeEntryHeader(final ArArchiveEntry entry) throws IOException { long offset = 0; boolean appendName = false; - final String n = entry.getName(); - final int nLength = n.length(); + final String eName = entry.getName(); + final int nLength = eName.length(); if (LONGFILE_ERROR == longFileMode && nLength > 16) { - throw new IOException("File name too long, > 16 chars: " + n); + throw new IOException("File name too long, > 16 chars: " + eName); } - if (LONGFILE_BSD == longFileMode && (nLength > 16 || n.contains(" "))) { + if (LONGFILE_BSD == longFileMode && (nLength > 16 || eName.contains(" "))) { appendName = true; offset += write(ArArchiveInputStream.BSD_LONGNAME_PREFIX + nLength); } else { - offset += write(n); + offset += write(eName); } // Last modified offset = fill(offset, 16, SPACE); @@ -218,8 +218,8 @@ public class ArArchiveOutputStream extends ArchiveOutputStream<ArArchiveEntry> { offset = fill(offset, 58, SPACE); offset += write(ArArchiveEntry.TRAILER); if (appendName) { - offset += write(n); + offset += write(eName); } - } + }