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) {
369369 private void validateIntroductionAdvisor (IntroductionAdvisor advisor ) {
370370 advisor .validateInterfaces ();
371371 // 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 ()) {
374373 addInterface (ifc );
375374 }
376375 }
Original file line number Diff line number Diff line change 4343 * In the case of inner-beans, the bean name may have been generated.
4444 *
4545 * @author Phillip Webb
46+ * @author Stephane Nicoll
47+ * @author Juergen Hoeller
4648 * @since 6.0
4749 */
4850public final class RegisteredBean {
@@ -262,9 +264,11 @@ public String toString() {
262264
263265 /**
264266 * 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
268272 * @param targetClass the target {@link Class} of the executable
269273 * @since 6.1.7
270274 */
You can’t perform that action at this time.
0 commit comments