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 b67df95f617073dbd75a82b83bf130befd1c2982
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Fri Apr 11 10:29:39 2025 -0400

    Javadoc
---
 ...leorInvisibleParameterAnnotationsAttribute.java | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git 
a/src/main/java/org/apache/commons/compress/harmony/unpack200/bytecode/RuntimeVisibleorInvisibleParameterAnnotationsAttribute.java
 
b/src/main/java/org/apache/commons/compress/harmony/unpack200/bytecode/RuntimeVisibleorInvisibleParameterAnnotationsAttribute.java
index 98c5859bd..f160c559d 100644
--- 
a/src/main/java/org/apache/commons/compress/harmony/unpack200/bytecode/RuntimeVisibleorInvisibleParameterAnnotationsAttribute.java
+++ 
b/src/main/java/org/apache/commons/compress/harmony/unpack200/bytecode/RuntimeVisibleorInvisibleParameterAnnotationsAttribute.java
@@ -35,10 +35,20 @@ public static class ParameterAnnotation {
 
         private final Annotation[] annotations;
 
+        /**
+         * Constructs a new instance.
+         *
+         * @param annotations Annotation.
+         */
         public ParameterAnnotation(final Annotation[] annotations) {
             this.annotations = annotations;
         }
 
+        /**
+         * Gets all annotation class file entries.
+         *
+         * @return all annotation class file entries.
+         */
         public List<Object> getClassFileEntries() {
             final List<Object> nested = new ArrayList<>();
             for (final Annotation annotation : annotations) {
@@ -47,6 +57,11 @@ public List<Object> getClassFileEntries() {
             return nested;
         }
 
+        /**
+         * Gets the cumulative length of all annotations.
+         *
+         * @return the cumulative length of all annotations.
+         */
         public int getLength() {
             int length = 2;
             for (final Annotation annotation : annotations) {
@@ -55,12 +70,23 @@ public int getLength() {
             return length;
         }
 
+        /**
+         * Resolves all annotations in this instance against the given pool.
+         *
+         * @param pool A class constant pool.
+         */
         public void resolve(final ClassConstantPool pool) {
             for (final Annotation annotation : annotations) {
                 annotation.resolve(pool);
             }
         }
 
+        /**
+         * Writes this body 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.writeShort(annotations.length);
             for (final Annotation annotation : annotations) {

Reply via email to