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
The following commit(s) were added to refs/heads/master by this push:
new 3614918b org.apache.bcel.classfile.MethodParameter now implements
org.apache.bcel.classfile.Node.
3614918b is described below
commit 3614918b34a85491353ce396ca85f9352086dc59
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Nov 19 10:36:50 2022 -0500
org.apache.bcel.classfile.MethodParameter now implements
org.apache.bcel.classfile.Node.
From Mark Roberts
---
src/changes/changes.xml | 1 +
src/main/java/org/apache/bcel/classfile/MethodParameter.java | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index c9491b81..9fab3684 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -69,6 +69,7 @@ The <action> type attribute can be add,update,fix,remove.
<action type="add" dev="ggregory" due-to="Gary
Gregory">Add org.apache.bcel.util.Args.</action>
<action type="add" dev="ggregory" due-to="Gary
Gregory">Add org.apache.bcel.generic.ArrayType.getClassName().</action>
<action type="add" dev="ggregory" due-to="Gary
Gregory">Add org.apache.bcel.generic.Type.getClassName().</action>
+ <action type="add" dev="ggregory" due-to="Gary Gregory,
Mark Roberts">org.apache.bcel.classfile.MethodParameter now implements
org.apache.bcel.classfile.Node.</action>
<!-- FIX -->
<action type="fix" dev="ggregory" due-to="nbauma109,
Gary Gregory">Typo in SimpleElementValue error message #161.</action>
<action type="fix" dev="ggregory" due-to="Mark Roberts,
Gary Gregory">Fix code duplication in
org.apache.bcel.verifier.structurals.ExceptionHandlers.ExceptionHandlers(MethodGen).</action>
diff --git a/src/main/java/org/apache/bcel/classfile/MethodParameter.java
b/src/main/java/org/apache/bcel/classfile/MethodParameter.java
index 620de886..f15b81a5 100644
--- a/src/main/java/org/apache/bcel/classfile/MethodParameter.java
+++ b/src/main/java/org/apache/bcel/classfile/MethodParameter.java
@@ -30,7 +30,7 @@ import org.apache.bcel.Const;
* The MethodParameters Attribute</a>
* @since 6.0
*/
-public class MethodParameter implements Cloneable {
+public class MethodParameter implements Cloneable, Node {
/** Index of the CONSTANT_Utf8_info structure in the constant_pool table
representing the name of the parameter */
private int nameIndex;
@@ -53,6 +53,7 @@ public class MethodParameter implements Cloneable {
accessFlags = input.readUnsignedShort();
}
+ @Override
public void accept(final Visitor v) {
v.visitMethodParameter(this);
}