Closed clara0 closed 2 years ago
Using getParameterTypes().length is inefficient because it creates an array clone, while getParameterCount() directly returns the length.
Targets Occurrences of 'getParameterTypes().length' in Project Found Occurrences in Project (1 usage found) Unclassified (1 usage found) jakarta.el (1 usage found) com.sun.el.lang (1 usage found) ExpressionBuilder.java (1 usage found) visit(Node) (1 usage found) 235 int pcnt = m.getParameterTypes().length;
Using getParameterTypes().length is inefficient because it creates an array clone, while getParameterCount() directly returns the length.