File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
spring-aop/src/main/java/org/springframework/aop/framework
spring-beans/src/main/java/org/springframework/beans/factory/support Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -369,8 +369,7 @@ public void addAdvisors(Collection<Advisor> advisors) {
369
369
private void validateIntroductionAdvisor (IntroductionAdvisor advisor ) {
370
370
advisor .validateInterfaces ();
371
371
// If the advisor passed validation, we can make the change.
372
- Class <?>[] ifcs = advisor .getInterfaces ();
373
- for (Class <?> ifc : ifcs ) {
372
+ for (Class <?> ifc : advisor .getInterfaces ()) {
374
373
addInterface (ifc );
375
374
}
376
375
}
Original file line number Diff line number Diff line change 43
43
* In the case of inner-beans, the bean name may have been generated.
44
44
*
45
45
* @author Phillip Webb
46
+ * @author Stephane Nicoll
47
+ * @author Juergen Hoeller
46
48
* @since 6.0
47
49
*/
48
50
public final class RegisteredBean {
@@ -262,9 +264,11 @@ public String toString() {
262
264
263
265
/**
264
266
* Descriptor for how a bean should be instantiated. While the {@code targetClass}
265
- * is usually the declaring class of the {@code executable}, there are cases
266
- * where retaining the actual concrete type is necessary.
267
- * @param executable the {@link Executable} to invoke
267
+ * is usually the declaring class of the {@code executable} (in case of a constructor
268
+ * or a locally declared factory method), there are cases where retaining the actual
269
+ * concrete class is necessary (e.g. for an inherited factory method).
270
+ * @param executable the {@link Executable} ({@link java.lang.reflect.Constructor}
271
+ * or {@link java.lang.reflect.Method}) to invoke
268
272
* @param targetClass the target {@link Class} of the executable
269
273
* @since 6.1.7
270
274
*/
You can’t perform that action at this time.
0 commit comments