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 cf7a2deae2ed8b3ca05b5f2942f9bd104fc6aab8 Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Sun Jan 5 08:10:15 2025 -0500 Use camel case --- .../commons/compress/archivers/zip/ZipArchiveInputStream.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java b/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java index c45e73973..a59b54ceb 100644 --- a/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java +++ b/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java @@ -210,7 +210,7 @@ public class ZipArchiveInputStream extends ArchiveInputStream<ZipArchiveEntry> i private static final BigInteger LONG_MAX = BigInteger.valueOf(Long.MAX_VALUE); - private static boolean checksig(final byte[] expected, final byte[] signature) { + private static boolean checkSig(final byte[] expected, final byte[] signature) { for (int i = 0; i < expected.length; i++) { if (signature[i] != expected[i]) { return false; @@ -231,10 +231,10 @@ public class ZipArchiveInputStream extends ArchiveInputStream<ZipArchiveEntry> i return false; } - return checksig(ZipArchiveOutputStream.LFH_SIG, signature) // normal file - || checksig(ZipArchiveOutputStream.EOCD_SIG, signature) // empty zip - || checksig(ZipArchiveOutputStream.DD_SIG, signature) // split zip - || checksig(ZipLong.SINGLE_SEGMENT_SPLIT_MARKER.getBytes(), signature); + return checkSig(ZipArchiveOutputStream.LFH_SIG, signature) // normal file + || checkSig(ZipArchiveOutputStream.EOCD_SIG, signature) // empty zip + || checkSig(ZipArchiveOutputStream.DD_SIG, signature) // split zip + || checkSig(ZipLong.SINGLE_SEGMENT_SPLIT_MARKER.getBytes(), signature); } /** The ZIP encoding to use for file names and the file comment. */