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 4aaa3e16ee5f51f28ae6eda2c56cbfb69d24bd22 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Apr 10 09:37:12 2025 -0400 Javadoc --- .../apache/commons/compress/harmony/unpack200/CpBands.java | 2 +- .../compress/harmony/unpack200/SegmentConstantPool.java | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/compress/harmony/unpack200/CpBands.java b/src/main/java/org/apache/commons/compress/harmony/unpack200/CpBands.java index 7ce798851..0d9a82480 100644 --- a/src/main/java/org/apache/commons/compress/harmony/unpack200/CpBands.java +++ b/src/main/java/org/apache/commons/compress/harmony/unpack200/CpBands.java @@ -39,7 +39,7 @@ import org.apache.commons.compress.harmony.unpack200.bytecode.CPUTF8; /** - * Constant Pool bands + * Constant Pool bands. */ public class CpBands extends BandSet { diff --git a/src/main/java/org/apache/commons/compress/harmony/unpack200/SegmentConstantPool.java b/src/main/java/org/apache/commons/compress/harmony/unpack200/SegmentConstantPool.java index d3000ebfc..6d5eb9873 100644 --- a/src/main/java/org/apache/commons/compress/harmony/unpack200/SegmentConstantPool.java +++ b/src/main/java/org/apache/commons/compress/harmony/unpack200/SegmentConstantPool.java @@ -153,14 +153,16 @@ static int toIntExact(final long index) throws Pack200Exception { private final SegmentConstantPoolArrayCache arrayCache = new SegmentConstantPoolArrayCache(); /** - * @param bands TODO + * Constructs a new instance. + * + * @param bands Constant pool bands. */ public SegmentConstantPool(final CpBands bands) { this.bands = bands; } /** - * Given the name of a class, answer the CPClass associated with that class. Answer null if the class doesn't exist. + * Gets the CPClass associated with a class name. Returns null if the class doesn't exist. * * @param name Class name to look for (form: java/lang/Object) * @return CPClass for that class name, or null if not found. @@ -311,13 +313,15 @@ public ClassFileEntry getValue(final int cp, final long longIndex) throws Pack20 * A number of things make use of subsets of structures. In one particular example, _super bytecodes will use a subset of method or field classes which have * just those methods / fields defined in the superclass. Similarly, _this bytecodes use just those methods/fields defined in this class, and _init * bytecodes use just those methods that start with {@code <init>}. - * + * <p> * This method takes an array of names, a String to match for, an index and a boolean as parameters, and answers the array position in the array of the * indexth element which matches (or equals) the String (depending on the state of the boolean) - * + * </p> + * <p> * In other words, if the class array consists of: Object [position 0, 0th instance of Object] String [position 1, 0th instance of String] String [position * 2, 1st instance of String] Object [position 3, 1st instance of Object] Object [position 4, 2nd instance of Object] then matchSpecificPoolEntryIndex(..., * "Object", 2, false) will answer 4. matchSpecificPoolEntryIndex(..., "String", 0, false) will answer 1. + * </p> * * @param nameArray Array of Strings against which the compareString is tested * @param compareString String for which to search