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 a424ab40292e972892587856862c9ca24652dd9c Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Nov 4 12:32:54 2023 -0400 Javadoc --- .../commons/compress/archivers/sevenz/Archive.java | 30 +++++++++++++--------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/src/main/java/org/apache/commons/compress/archivers/sevenz/Archive.java b/src/main/java/org/apache/commons/compress/archivers/sevenz/Archive.java index a4d8db55..a05faf24 100644 --- a/src/main/java/org/apache/commons/compress/archivers/sevenz/Archive.java +++ b/src/main/java/org/apache/commons/compress/archivers/sevenz/Archive.java @@ -19,36 +19,42 @@ package org.apache.commons.compress.archivers.sevenz; import java.util.BitSet; class Archive { + private static String lengthOf(final long[] a) { return a == null ? "(null)" : String.valueOf(a.length); } + private static String lengthOf(final Object[] a) { return a == null ? "(null)" : String.valueOf(a.length); } - /// Offset from beginning of file + SIGNATURE_HEADER_SIZE to packed streams. + + /** Offset from beginning of file + SIGNATURE_HEADER_SIZE to packed streams. */ long packPos; - /// Size of each packed stream. + + /** Size of each packed stream. */ long[] packSizes = {}; - /// Whether each particular packed streams has a CRC. + + /** Whether each particular packed streams has a CRC. */ BitSet packCrcsDefined; - /// CRCs for each packed stream, valid only if that packed stream has one. + + /** CRCs for each packed stream, valid only if that packed stream has one. */ long[] packCrcs; - /// Properties of solid compression blocks. + + /** Properties of solid compression blocks. */ Folder[] folders = Folder.EMPTY_FOLDER_ARRAY; - /// Temporary properties for non-empty files (subsumed into the files array later). + + /** Temporary properties for non-empty files (subsumed into the files array later). */ SubStreamsInfo subStreamsInfo; - /// The files and directories in the archive. + /** The files and directories in the archive. */ SevenZArchiveEntry[] files = SevenZArchiveEntry.EMPTY_SEVEN_Z_ARCHIVE_ENTRY_ARRAY; - /// Mapping between folders, files and streams. + /** Mapping between folders, files and streams. */ StreamMap streamMap; @Override public String toString() { - return "Archive with packed streams starting at offset " + packPos - + ", " + lengthOf(packSizes) + " pack sizes, " + lengthOf(packCrcs) - + " CRCs, " + lengthOf(folders) + " folders, " + lengthOf(files) - + " files and " + streamMap; + return "Archive with packed streams starting at offset " + packPos + ", " + lengthOf(packSizes) + " pack sizes, " + lengthOf(packCrcs) + " CRCs, " + + lengthOf(folders) + " folders, " + lengthOf(files) + " files and " + streamMap; } }