Re-implemented the toObjectArray method using System.arraycopy.
This commit is contained in:
@@ -38,13 +38,7 @@ class DefaultFunctionArgumentResolver implements FunctionArgumentResolver {
|
|||||||
|
|
||||||
private Object[] toObjectArray(final Object[] arguments) {
|
private Object[] toObjectArray(final Object[] arguments) {
|
||||||
Object[] result = new Object[arguments.length];
|
Object[] result = new Object[arguments.length];
|
||||||
|
System.arraycopy(arguments, 0, result, 0, arguments.length);
|
||||||
int index = 0;
|
|
||||||
|
|
||||||
for (Object arg : arguments) {
|
|
||||||
result[index++] = arg;
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user