Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.3.3
-
ML, Spark Core, SQL
-
None
Description
Since jdk1.8 there is an additional function in reflection API getParameterCount, it is better to use that function instead of getParameterTypes.length because getParameterTypes function makes a copy of the parameter types array every invocation.
This will help to avoid redundant arrays creation.