Skip to content

Commit 357beb2

Browse files
committed
Polishing
1 parent 17c423f commit 357beb2

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

spring-aop/src/main/java/org/springframework/aop/support/ComposablePointcut.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public int hashCode() {
202202

203203
@Override
204204
public String toString() {
205-
return "ComposablePointcut: " + this.classFilter + ", " + this.methodMatcher;
205+
return getClass().getName() + ": " + this.classFilter + ", " + this.methodMatcher;
206206
}
207207

208208
}

spring-aop/src/main/java/org/springframework/aop/support/DefaultIntroductionAdvisor.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,25 +82,25 @@ public DefaultIntroductionAdvisor(Advice advice, @Nullable IntroductionInfo intr
8282
/**
8383
* Create a DefaultIntroductionAdvisor for the given advice.
8484
* @param advice the Advice to apply
85-
* @param intf the interface to introduce
85+
* @param ifc the interface to introduce
8686
*/
87-
public DefaultIntroductionAdvisor(DynamicIntroductionAdvice advice, Class<?> intf) {
87+
public DefaultIntroductionAdvisor(DynamicIntroductionAdvice advice, Class<?> ifc) {
8888
Assert.notNull(advice, "Advice must not be null");
8989
this.advice = advice;
90-
addInterface(intf);
90+
addInterface(ifc);
9191
}
9292

9393

9494
/**
9595
* Add the specified interface to the list of interfaces to introduce.
96-
* @param intf the interface to introduce
96+
* @param ifc the interface to introduce
9797
*/
98-
public void addInterface(Class<?> intf) {
99-
Assert.notNull(intf, "Interface must not be null");
100-
if (!intf.isInterface()) {
101-
throw new IllegalArgumentException("Specified class [" + intf.getName() + "] must be an interface");
98+
public void addInterface(Class<?> ifc) {
99+
Assert.notNull(ifc, "Interface must not be null");
100+
if (!ifc.isInterface()) {
101+
throw new IllegalArgumentException("Specified class [" + ifc.getName() + "] must be an interface");
102102
}
103-
this.interfaces.add(intf);
103+
this.interfaces.add(ifc);
104104
}
105105

106106
@Override
@@ -113,8 +113,8 @@ public void validateInterfaces() throws IllegalArgumentException {
113113
for (Class<?> ifc : this.interfaces) {
114114
if (this.advice instanceof DynamicIntroductionAdvice &&
115115
!((DynamicIntroductionAdvice) this.advice).implementsInterface(ifc)) {
116-
throw new IllegalArgumentException("DynamicIntroductionAdvice [" + this.advice + "] " +
117-
"does not implement interface [" + ifc.getName() + "] specified for introduction");
116+
throw new IllegalArgumentException("DynamicIntroductionAdvice [" + this.advice + "] " +
117+
"does not implement interface [" + ifc.getName() + "] specified for introduction");
118118
}
119119
}
120120
}

0 commit comments

Comments
 (0)