Browse Source

Replace manual array copy with native method call

Closes gh-1606
pull/1606/merge
Kamil Szymanski 7 years ago committed by Stephane Nicoll
parent
commit
61117245a6
  1. 4
      spring-beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java

4
spring-beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java

@ -672,9 +672,7 @@ public class AutowiredAnnotationBeanPostProcessor extends InstantiationAwareBean @@ -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();

Loading…
Cancel
Save