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 73b41ff7f060101425b3c1b6a1ed925d8ab0fbac Author: Gary Gregory <[email protected]> AuthorDate: Sat Jan 10 23:32:04 2026 -0500 Javadoc --- .../java/org/apache/bcel/generic/FieldInstruction.java | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/bcel/generic/FieldInstruction.java b/src/main/java/org/apache/bcel/generic/FieldInstruction.java index 4bc05d8c..f46ec04a 100644 --- a/src/main/java/org/apache/bcel/generic/FieldInstruction.java +++ b/src/main/java/org/apache/bcel/generic/FieldInstruction.java @@ -32,13 +32,19 @@ public abstract class FieldInstruction extends FieldOrMethod { } /** - * @param index to constant pool + * Constructs a FieldInstruction. + * + * @param opcode the opcode. + * @param index to constant pool. */ protected FieldInstruction(final short opcode, final int index) { super(opcode, index); } /** + * Gets the name of referenced field. + * + * @param cpg the constant pool generator. * @return name of referenced field. */ public String getFieldName(final ConstantPoolGen cpg) { @@ -46,14 +52,20 @@ public abstract class FieldInstruction extends FieldOrMethod { } /** - * @return size of field (1 or 2) + * Gets the size of field. + * + * @param cpg the constant pool generator. + * @return size of field (1 or 2). */ protected int getFieldSize(final ConstantPoolGen cpg) { return Type.size(Type.getTypeSize(getSignature(cpg))); } /** - * @return type of field + * Gets the type of field. + * + * @param cpg the constant pool generator. + * @return type of field. */ public Type getFieldType(final ConstantPoolGen cpg) { return Type.getType(getSignature(cpg));
