Skip to content

Commit cbda469

Browse files
committed
Polishing
1 parent 7263771 commit cbda469

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

spring-aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
}

spring-beans/src/main/java/org/springframework/beans/factory/support/RegisteredBean.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
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
*/
4850
public 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
*/

0 commit comments

Comments
 (0)