mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-24 15:49:26 +00:00
Use array.clone() instead of manual array creation
This commit is contained in:
committed by
Juergen Hoeller
parent
f61d728db9
commit
f2b3953d76
+1
-2
@@ -212,8 +212,7 @@ public class ReflectiveMethodInvocation implements ProxyMethodInvocation, Clonea
|
||||
Object[] cloneArguments = this.arguments;
|
||||
if (this.arguments.length > 0) {
|
||||
// Build an independent copy of the arguments array.
|
||||
cloneArguments = new Object[this.arguments.length];
|
||||
System.arraycopy(this.arguments, 0, cloneArguments, 0, this.arguments.length);
|
||||
cloneArguments = this.arguments.clone();
|
||||
}
|
||||
return invocableClone(cloneArguments);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user