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 7cb3e59ac17016910c7747682e3313a5bf45a07b
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Fri Apr 11 16:08:19 2025 -0400

    Javadoc
---
 .../unpack200/bytecode/AnnotationsAttribute.java   | 31 ++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git 
a/src/main/java/org/apache/commons/compress/harmony/unpack200/bytecode/AnnotationsAttribute.java
 
b/src/main/java/org/apache/commons/compress/harmony/unpack200/bytecode/AnnotationsAttribute.java
index a97c6d112..93b16d999 100644
--- 
a/src/main/java/org/apache/commons/compress/harmony/unpack200/bytecode/AnnotationsAttribute.java
+++ 
b/src/main/java/org/apache/commons/compress/harmony/unpack200/bytecode/AnnotationsAttribute.java
@@ -57,6 +57,11 @@ public Annotation(final int numPairs, final CPUTF8 type, 
final CPUTF8[] elementN
             this.elementValues = elementValues;
         }
 
+        /**
+         * Gets a list of class file entries.
+         *
+         * @return a list of class file entries.
+         */
         public List<Object> getClassFileEntries() {
             final List<Object> entries = new ArrayList<>();
             for (int i = 0; i < elementNames.length; i++) {
@@ -67,6 +72,11 @@ public List<Object> getClassFileEntries() {
             return entries;
         }
 
+        /**
+         * Gets the cumulative length of all element values.
+         *
+         * @return the cumulative length of all element values.
+         */
         public int getLength() {
             int length = 4;
             for (int i = 0; i < numPairs; i++) {
@@ -76,6 +86,11 @@ public int getLength() {
             return length;
         }
 
+        /**
+         * Resolves this instance against a given pool.
+         *
+         * @param pool a class constant pool.
+         */
         public void resolve(final ClassConstantPool pool) {
             type.resolve(pool);
             typeIndex = pool.indexOf(type);
@@ -125,6 +140,11 @@ public ElementValue(final int tag, final Object value) {
             this.value = value;
         }
 
+        /**
+         * Gets a list of class file entries.
+         *
+         * @return a list of class file entries.
+         */
         public List<Object> getClassFileEntries() {
             final List<Object> entries = new ArrayList<>(1);
             if (value instanceof CPNameAndType) {
@@ -178,6 +198,11 @@ public int getLength() {
             return 0;
         }
 
+        /**
+         * Resolves this instance against a given pool.
+         *
+         * @param pool a class constant pool.
+         */
         public void resolve(final ClassConstantPool pool) {
             if (value instanceof CPConstant) {
                 ((CPConstant) value).resolve(pool);
@@ -200,6 +225,12 @@ public void resolve(final ClassConstantPool pool) {
             }
         }
 
+        /**
+         * Writes this instance to the given output stream.
+         *
+         * @param dos the output stream.
+         * @throws IOException if an I/O error occurs.
+         */
         public void writeBody(final DataOutputStream dos) throws IOException {
             dos.writeByte(tag);
             if (constantValueIndex != -1) {

Reply via email to