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 19f90e50a0682afc4ec63f9cefa73b184973ba1a
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Jan 10 16:22:32 2026 -0500

    Javadoc
---
 .../org/apache/bcel/classfile/ConstantString.java    | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/bcel/classfile/ConstantString.java 
b/src/main/java/org/apache/bcel/classfile/ConstantString.java
index 3368b218..83017391 100644
--- a/src/main/java/org/apache/bcel/classfile/ConstantString.java
+++ b/src/main/java/org/apache/bcel/classfile/ConstantString.java
@@ -53,7 +53,9 @@ public final class ConstantString extends Constant implements 
ConstantObject {
     }
 
     /**
-     * @param stringIndex Index of Constant_Utf8 in constant pool
+     * Constructs a ConstantString.
+     *
+     * @param stringIndex Index of Constant_Utf8 in constant pool.
      */
     public ConstantString(final int stringIndex) {
         super(Const.CONSTANT_String);
@@ -84,14 +86,20 @@ public final class ConstantString extends Constant 
implements ConstantObject {
     }
 
     /**
-     * @return dereferenced string
+     * Gets the dereferenced string.
+     *
+     * @param cp the constant pool.
+     * @return dereferenced string.
      */
     public String getBytes(final ConstantPool cp) {
         return (String) getConstantValue(cp);
     }
 
     /**
-     * @return String object
+     * Gets the String object.
+     *
+     * @param cp the constant pool.
+     * @return String object.
      */
     @Override
     public Object getConstantValue(final ConstantPool cp) {
@@ -99,6 +107,8 @@ public final class ConstantString extends Constant 
implements ConstantObject {
     }
 
     /**
+     * Gets the index in constant pool of the string.
+     *
      * @return Index in constant pool of the string (ConstantUtf8).
      */
     public int getStringIndex() {
@@ -106,7 +116,9 @@ public final class ConstantString extends Constant 
implements ConstantObject {
     }
 
     /**
-     * @param stringIndex the index into the constant of the string value
+     * Sets the string index.
+     *
+     * @param stringIndex the index into the constant of the string value.
      */
     public void setStringIndex(final int stringIndex) {
         this.stringIndex = stringIndex;

Reply via email to