Skip to content

Commit b88edd1

Browse files
committed
polishing
1 parent e57543a commit b88edd1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2007 the original author or authors.
2+
* Copyright 2002-2009 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.
@@ -20,6 +20,7 @@
2020
import java.util.List;
2121
import java.util.regex.Pattern;
2222

23+
import org.springframework.aop.Advisor;
2324
import org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator;
2425
import org.springframework.beans.factory.ListableBeanFactory;
2526
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
@@ -78,9 +79,9 @@ protected void initBeanFactory(ConfigurableListableBeanFactory beanFactory) {
7879

7980

8081
@Override
81-
protected List findCandidateAdvisors() {
82+
protected List<Advisor> findCandidateAdvisors() {
8283
// Add all the Spring advisors found according to superclass rules.
83-
List advisors = super.findCandidateAdvisors();
84+
List<Advisor> advisors = super.findCandidateAdvisors();
8485
// Build Advisors for all AspectJ aspects in the bean factory.
8586
advisors.addAll(this.aspectJAdvisorsBuilder.buildAspectJAdvisors());
8687
return advisors;

org.springframework.aop/src/main/java/org/springframework/aop/config/AspectJAutoProxyBeanDefinitionParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2007 the original author or authors.
2+
* Copyright 2002-2009 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.
@@ -52,7 +52,7 @@ private void extendBeanDefinition(Element element, ParserContext parserContext)
5252
}
5353

5454
private void addIncludePatterns(Element element, ParserContext parserContext, BeanDefinition beanDef) {
55-
ManagedList includePatterns = new ManagedList();
55+
ManagedList<TypedStringValue> includePatterns = new ManagedList<TypedStringValue>();
5656
NodeList childNodes = element.getChildNodes();
5757
for (int i = 0; i < childNodes.getLength(); i++) {
5858
Node node = childNodes.item(i);

0 commit comments

Comments
 (0)