From 5cb06f5da23da2dd951ed320b12244942c00a90a Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 14 Oct 2010 09:34:31 +0000 Subject: [PATCH] consistent caching of @Autowired arguments in field and method case (SPR-7635) --- .../annotation/AutowiredAnnotationBeanPostProcessor.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/org.springframework.beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java b/org.springframework.beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java index a245d51737..230d95443b 100644 --- a/org.springframework.beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java +++ b/org.springframework.beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java @@ -567,9 +567,6 @@ public class AutowiredAnnotationBeanPostProcessor extends InstantiationAwareBean this.cachedMethodArguments[i] = new RuntimeBeanReference(autowiredBeanName); } } - else { - this.cachedMethodArguments[i] = arguments[i]; - } } } }