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 7caadbf8c05a14dd550a658bbb7586d17bb1c467 Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Fri May 30 09:00:49 2025 -0400 Inline local variable initialization --- src/main/java/org/apache/commons/compress/utils/ArchiveUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/compress/utils/ArchiveUtils.java b/src/main/java/org/apache/commons/compress/utils/ArchiveUtils.java index ca4a7cd75..1080bc518 100644 --- a/src/main/java/org/apache/commons/compress/utils/ArchiveUtils.java +++ b/src/main/java/org/apache/commons/compress/utils/ArchiveUtils.java @@ -167,8 +167,7 @@ public static boolean matchAsciiBuffer(final String expected, final byte[] buffe * @return {@code true} if buffer is the same as the expected string */ public static boolean matchAsciiBuffer(final String expected, final byte[] buffer, final int offset, final int length) { - final byte[] buffer1; - buffer1 = expected.getBytes(US_ASCII); + final byte[] buffer1 = expected.getBytes(US_ASCII); return isEqual(buffer1, 0, buffer1.length, buffer, offset, length, false); }