getParameterCount() can be used instead of getParameterTypes().length and getParameters().length #10333
Labels
area/core
kind/enhancement
Categorizes a PR related to an enhancement
status/ready
Ready to be merged
Milestone
Description
Replace occurrences of
getParameterTypes().length
andgetParameters().length
withgetParameterCount()
.Discussion
No response
Motivation
getParameterTypes().length
andgetParameters().length
are inefficient because they create an array clone, whilegetParameterCount()
directly returns the length.Details
No response
The text was updated successfully, but these errors were encountered: