Skip to content

Commit 59893d1

Browse files
committed
Fixed assert in setAspectJAdvisorFactory()
Issue: SPR-11330 (cherry picked from commit f15a5fe)
1 parent 9aefa03 commit 59893d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2013 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.
@@ -67,7 +67,7 @@ public void setIncludePatterns(List<String> patterns) {
6767
}
6868

6969
public void setAspectJAdvisorFactory(AspectJAdvisorFactory aspectJAdvisorFactory) {
70-
Assert.notNull(this.aspectJAdvisorFactory, "AspectJAdvisorFactory must not be null");
70+
Assert.notNull(aspectJAdvisorFactory, "AspectJAdvisorFactory must not be null");
7171
this.aspectJAdvisorFactory = aspectJAdvisorFactory;
7272
}
7373

@@ -89,7 +89,7 @@ protected List<Advisor> findCandidateAdvisors() {
8989
}
9090

9191
@Override
92-
protected boolean isInfrastructureClass(Class beanClass) {
92+
protected boolean isInfrastructureClass(Class<?> beanClass) {
9393
// Previously we setProxyTargetClass(true) in the constructor, but that has too
9494
// broad an impact. Instead we now override isInfrastructureClass to avoid proxying
9595
// aspects. I'm not entirely happy with that as there is no good reason not

0 commit comments

Comments
 (0)