jakartaee / expression-language

Jakarta Expression Language
https://eclipse.org/ee4j/el
Other
70 stars 50 forks source link

Replace Usage of getParameterTypes().length with getParameterCount() #178

Closed clara0 closed 2 years ago

clara0 commented 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;