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-bcel.git

commit b2efa3a51c2d1ba4e7e44887e0496ab229efbaa9
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Jan 10 16:22:33 2026 -0500

    Javadoc
---
 .../org/apache/bcel/classfile/ConstantValue.java    | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/src/main/java/org/apache/bcel/classfile/ConstantValue.java 
b/src/main/java/org/apache/bcel/classfile/ConstantValue.java
index 8b76b5ba..da8a6e83 100644
--- a/src/main/java/org/apache/bcel/classfile/ConstantValue.java
+++ b/src/main/java/org/apache/bcel/classfile/ConstantValue.java
@@ -67,10 +67,12 @@ public final class ConstantValue extends Attribute {
     }
 
     /**
-     * @param nameIndex Name index in constant pool
-     * @param length Content length in bytes
-     * @param constantValueIndex Index in constant pool
-     * @param constantPool Array of constants
+     * Constructs a ConstantValue.
+     *
+     * @param nameIndex Name index in constant pool.
+     * @param length Content length in bytes.
+     * @param constantValueIndex Index in constant pool.
+     * @param constantPool Array of constants.
      */
     public ConstantValue(final int nameIndex, final int length, final int 
constantValueIndex, final ConstantPool constantPool) {
         super(Const.ATTR_CONSTANT_VALUE, nameIndex, Args.require(length, 2, 
"ConstantValue attribute length"), constantPool);
@@ -89,7 +91,10 @@ public final class ConstantValue extends Attribute {
     }
 
     /**
-     * @return deep copy of this attribute
+     * Creates a deep copy of this attribute.
+     *
+     * @param constantPool the constant pool.
+     * @return deep copy of this attribute.
      */
     @Override
     public Attribute copy(final ConstantPool constantPool) {
@@ -111,6 +116,8 @@ public final class ConstantValue extends Attribute {
     }
 
     /**
+     * Gets the index in constant pool of constant value.
+     *
      * @return Index in constant pool of constant value.
      */
     public int getConstantValueIndex() {
@@ -118,7 +125,9 @@ public final class ConstantValue extends Attribute {
     }
 
     /**
-     * @param constantValueIndex the index info the constant pool of this 
constant value
+     * Sets the constant value index.
+     *
+     * @param constantValueIndex the index info the constant pool of this 
constant value.
      */
     public void setConstantValueIndex(final int constantValueIndex) {
         this.constantValueIndex = constantValueIndex;

Reply via email to