Merge pull request #1606 from kamilszymanski:arraycopy

* pr/1606:
  Replace manual array copy with native method call
This commit is contained in:
Stephane Nicoll 2018-02-04 11:41:10 +01:00
commit fdde9de005
1 changed files with 1 additions and 3 deletions

View File

@ -672,9 +672,7 @@ public class AutowiredAnnotationBeanPostProcessor extends InstantiationAwareBean
if (!this.cached) {
if (arguments != null) {
Object[] cachedMethodArguments = new Object[paramTypes.length];
for (int i = 0; i < arguments.length; i++) {
cachedMethodArguments[i] = descriptors[i];
}
System.arraycopy(descriptors, 0, cachedMethodArguments, 0, arguments.length);
registerDependentBeans(beanName, autowiredBeans);
if (autowiredBeans.size() == paramTypes.length) {
Iterator<String> it = autowiredBeans.iterator();