Skip to content

Commit a48e2f3

Browse files
committed
Polishing
1 parent 1833aaf commit a48e2f3

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

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

+13-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -44,15 +44,17 @@
4444

4545
/**
4646
* Base class for AOP proxy configuration managers.
47-
* These are not themselves AOP proxies, but subclasses of this class are
47+
*
48+
* <p>These are not themselves AOP proxies, but subclasses of this class are
4849
* normally factories from which AOP proxy instances are obtained directly.
4950
*
5051
* <p>This class frees subclasses of the housekeeping of Advices
5152
* and Advisors, but doesn't actually implement proxy creation
5253
* methods, which are provided by subclasses.
5354
*
5455
* <p>This class is serializable; subclasses need not be.
55-
* This class is used to hold snapshots of proxies.
56+
*
57+
* <p>This class is used to hold snapshots of proxies.
5658
*
5759
* @author Rod Johnson
5860
* @author Juergen Hoeller
@@ -104,7 +106,7 @@ public AdvisedSupport() {
104106
}
105107

106108
/**
107-
* Create a AdvisedSupport instance with the given parameters.
109+
* Create an {@code AdvisedSupport} instance with the given parameters.
108110
* @param interfaces the proxied interfaces
109111
*/
110112
public AdvisedSupport(Class<?>... interfaces) {
@@ -115,7 +117,7 @@ public AdvisedSupport(Class<?>... interfaces) {
115117

116118
/**
117119
* Set the given object as target.
118-
* Will create a SingletonTargetSource for the object.
120+
* <p>Will create a SingletonTargetSource for the object.
119121
* @see #setTargetSource
120122
* @see org.springframework.aop.target.SingletonTargetSource
121123
*/
@@ -344,8 +346,7 @@ public void addAdvisors(Collection<Advisor> advisors) {
344346
private void validateIntroductionAdvisor(IntroductionAdvisor advisor) {
345347
advisor.validateInterfaces();
346348
// If the advisor passed validation, we can make the change.
347-
Class<?>[] ifcs = advisor.getInterfaces();
348-
for (Class<?> ifc : ifcs) {
349+
for (Class<?> ifc : advisor.getInterfaces()) {
349350
addInterface(ifc);
350351
}
351352
}
@@ -491,9 +492,9 @@ protected void copyConfigurationFrom(AdvisedSupport other) {
491492
}
492493

493494
/**
494-
* Copy the AOP configuration from the given AdvisedSupport object,
495-
* but allow substitution of a fresh TargetSource and a given interceptor chain.
496-
* @param other the AdvisedSupport object to take proxy configuration from
495+
* Copy the AOP configuration from the given {@link AdvisedSupport} object,
496+
* but allow substitution of a fresh {@link TargetSource} and a given interceptor chain.
497+
* @param other the {@code AdvisedSupport} object to take proxy configuration from
497498
* @param targetSource the new TargetSource
498499
* @param advisors the Advisors for the chain
499500
*/
@@ -513,8 +514,8 @@ protected void copyConfigurationFrom(AdvisedSupport other, TargetSource targetSo
513514
}
514515

515516
/**
516-
* Build a configuration-only copy of this AdvisedSupport,
517-
* replacing the TargetSource.
517+
* Build a configuration-only copy of this {@link AdvisedSupport},
518+
* replacing the {@link TargetSource}.
518519
*/
519520
AdvisedSupport getConfigurationOnlyCopy() {
520521
AdvisedSupport copy = new AdvisedSupport();

0 commit comments

Comments
 (0)