Skip to content

Commit 3252cb5

Browse files
committed
Merge branch 'cleanup-3.2.x' into 3.2.x
* cleanup-3.2.x: Polish formatting
2 parents 220d231 + f464a45 commit 3252cb5

File tree

114 files changed

+124
-127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+124
-127
lines changed

spring-aop/src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcut.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ else if (shadowMatch.neverMatches()) {
282282
return false;
283283
}
284284
else {
285-
// the maybe case
286-
return (beanHasIntroductions || matchesIgnoringSubtypes(shadowMatch) || matchesTarget(shadowMatch, targetClass));
285+
// the maybe case
286+
return (beanHasIntroductions || matchesIgnoringSubtypes(shadowMatch) || matchesTarget(shadowMatch, targetClass));
287287
}
288288
}
289289

spring-aop/src/main/java/org/springframework/aop/aspectj/AspectJProxyUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public static boolean makeAdvisorChainAspectJCapableIfNecessary(List<Advisor> ad
6464
*/
6565
private static boolean isAspectJAdvice(Advisor advisor) {
6666
return (advisor instanceof InstantiationModelAwarePointcutAdvisor ||
67-
advisor.getAdvice() instanceof AbstractAspectJAdvice ||
68-
(advisor instanceof PointcutAdvisor &&
67+
advisor.getAdvice() instanceof AbstractAspectJAdvice ||
68+
(advisor instanceof PointcutAdvisor &&
6969
((PointcutAdvisor) advisor).getPointcut() instanceof AspectJExpressionPointcut));
7070
}
7171

spring-aop/src/main/java/org/springframework/aop/aspectj/annotation/InstantiationModelAwarePointcutAdvisorImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ class InstantiationModelAwarePointcutAdvisorImpl
6363
private Boolean isAfterAdvice;
6464

6565

66-
public InstantiationModelAwarePointcutAdvisorImpl(AspectJAdvisorFactory af, AspectJExpressionPointcut ajexp,
67-
MetadataAwareAspectInstanceFactory aif, Method method, int declarationOrderInAspect, String aspectName) {
66+
public InstantiationModelAwarePointcutAdvisorImpl(AspectJAdvisorFactory af, AspectJExpressionPointcut ajexp,
67+
MetadataAwareAspectInstanceFactory aif, Method method, int declarationOrderInAspect, String aspectName) {
6868

6969
this.declaredPointcut = ajexp;
7070
this.method = method;

spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/AbstractAutoProxyCreator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ public abstract class AbstractAutoProxyCreator extends ProxyConfig
152152
* @param order ordering value
153153
*/
154154
public final void setOrder(int order) {
155-
this.order = order;
155+
this.order = order;
156156
}
157157

158158
public final int getOrder() {
159-
return this.order;
159+
return this.order;
160160
}
161161

162162
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private void init(Object delegate) {
9595

9696

9797
/**
98-
* Subclasses may need to override this if they want to perform custom
98+
* Subclasses may need to override this if they want to perform custom
9999
* behaviour in around advice. However, subclasses should invoke this
100100
* method, which handles introduced interfaces and forwarding to the target.
101101
*/

spring-aop/src/test/java/org/springframework/aop/aspectj/MethodInvocationProceedingJoinPointTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public void testCanGetSourceLocationFromJoinPoint() {
139139
@Override
140140
public void before(Method method, Object[] args, Object target) throws Throwable {
141141
SourceLocation sloc = AbstractAspectJAdvice.currentJoinPoint().getSourceLocation();
142-
assertEquals("Same source location must be returned on subsequent requests", sloc, AbstractAspectJAdvice.currentJoinPoint().getSourceLocation());
142+
assertEquals("Same source location must be returned on subsequent requests", sloc, AbstractAspectJAdvice.currentJoinPoint().getSourceLocation());
143143
assertEquals(TestBean.class, sloc.getWithinType());
144144
try {
145145
sloc.getLine();
@@ -172,7 +172,7 @@ public void testCanGetStaticPartFromJoinPoint() {
172172
@Override
173173
public void before(Method method, Object[] args, Object target) throws Throwable {
174174
StaticPart staticPart = AbstractAspectJAdvice.currentJoinPoint().getStaticPart();
175-
assertEquals("Same static part must be returned on subsequent requests", staticPart, AbstractAspectJAdvice.currentJoinPoint().getStaticPart());
175+
assertEquals("Same static part must be returned on subsequent requests", staticPart, AbstractAspectJAdvice.currentJoinPoint().getStaticPart());
176176
assertEquals(ProceedingJoinPoint.METHOD_EXECUTION, staticPart.getKind());
177177
assertSame(AbstractAspectJAdvice.currentJoinPoint().getSignature(), staticPart.getSignature());
178178
assertEquals(AbstractAspectJAdvice.currentJoinPoint().getSourceLocation(), staticPart.getSourceLocation());

spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactoryTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ public void recordModificationIfSetterArgumentDiffersFromOldValue(JoinPoint jp,
940940
}
941941

942942
// Find the current raw value, by invoking the corresponding setter
943-
Method correspondingGetter = getGetterFromSetter(((MethodSignature) jp.getSignature()).getMethod());
943+
Method correspondingGetter = getGetterFromSetter(((MethodSignature) jp.getSignature()).getMethod());
944944
boolean modified = true;
945945
if (correspondingGetter != null) {
946946
try {

spring-aop/src/test/java/org/springframework/aop/framework/AopProxyUtilsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl
137137
AopProxyUtils.proxiedUserInterfaces(proxy);
138138
}
139139

140-
}
140+
}

spring-aop/src/test/java/org/springframework/aop/framework/PrototypeTargetTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public void testSingletonProxyWithPrototypeTarget() {
6363
assertEquals(10, interceptor.invocationCount);
6464
}
6565

66-
6766
public static interface TestBean {
6867
public void doSomething();
6968
}

spring-aop/src/test/java/org/springframework/aop/interceptor/ExposeInvocationInterceptorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void testXmlConfig() {
4444
DefaultListableBeanFactory bf = new DefaultListableBeanFactory();
4545
new XmlBeanDefinitionReader(bf).loadBeanDefinitions(CONTEXT);
4646
ITestBean tb = (ITestBean) bf.getBean("proxy");
47-
String name= "tony";
47+
String name = "tony";
4848
tb.setName(name);
4949
// Fires context checks
5050
assertEquals(name, tb.getName());

0 commit comments

Comments
 (0)