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 56f595be23a64a63597f65c52ad5d9e029949aeb Author: Gary Gregory <[email protected]> AuthorDate: Sat Jan 10 08:03:20 2026 -0500 Javadoc --- .../java/org/apache/bcel/classfile/Constant.java | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/bcel/classfile/Constant.java b/src/main/java/org/apache/bcel/classfile/Constant.java index 2e725dc8..ae4c5475 100644 --- a/src/main/java/org/apache/bcel/classfile/Constant.java +++ b/src/main/java/org/apache/bcel/classfile/Constant.java @@ -48,6 +48,8 @@ public abstract class Constant implements Cloneable, Node { }; /** + * Gets the comparison strategy object. + * * @return Comparison strategy object. */ public static BCELComparator<Constant> getComparator() { @@ -106,7 +108,9 @@ public abstract class Constant implements Cloneable, Node { } /** - * @param comparator Comparison strategy object + * Sets the comparison strategy object. + * + * @param comparator Comparison strategy object. */ public static void setComparator(final BCELComparator<Constant> comparator) { bcelComparator = comparator; @@ -149,7 +153,9 @@ public abstract class Constant implements Cloneable, Node { } /** - * @return deep copy of this constant + * Creates a deep copy of this constant. + * + * @return deep copy of this constant. */ public Constant copy() { try { @@ -160,6 +166,12 @@ public abstract class Constant implements Cloneable, Node { return null; } + /** + * Dumps constant to file stream in binary format. + * + * @param file the output stream. + * @throws IOException if an I/O error occurs. + */ public abstract void dump(DataOutputStream file) throws IOException; /** @@ -174,7 +186,9 @@ public abstract class Constant implements Cloneable, Node { } /** - * @return Tag of constant, i.e., its type. No setTag() method to avoid confusion. + * Gets the tag of constant. + * + * @return Tag of constant, that is, its type. No setTag() method to avoid confusion. */ public final byte getTag() { return tag;
