-
Enhancement
-
Resolution: Done
-
Minor
-
None
-
None
getParameterTypes().length is inefficient because it creates an array clone, while getParameterCount() directly returns the length
agent/src/main/java/org/jboss/byteman/rule/expression/MethodExpression.java: method.getParameterTypes().length == arity) { agent/src/main/java/org/jboss/byteman/rule/expression/NewExpression.java: if (constructor.getParameterTypes().length == arity) { agent/src/main/java/org/jboss/byteman/rule/expression/ThrowExpression.java: if (constructor.getParameterTypes().length == arity) {
- is related to
-
WFLY-15612 Replace usages of getParameterTypes().length with getParameterCount()
- Closed