Skip to content

Commit f51fe5f

Browse files
committed
Polishing
1 parent e788b84 commit f51fe5f

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ protected static class AspectJAnnotation<A extends Annotation> {
167167

168168
private static final String[] EXPRESSION_PROPERTIES = new String[] {"value", "pointcut"};
169169

170-
private static Map<Class<?>, AspectJAnnotationType> annotationTypes =
171-
new HashMap<>();
170+
private static Map<Class<?>, AspectJAnnotationType> annotationTypes = new HashMap<>();
172171

173172
static {
174173
annotationTypes.put(Pointcut.class,AspectJAnnotationType.AtPointcut);

spring-context/src/main/java/org/springframework/context/support/GenericXmlApplicationContext.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2016 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.
@@ -29,7 +29,8 @@
2929
*
3030
* <p>In case of multiple configuration files, bean definitions in later files
3131
* will override those defined in earlier files. This can be leveraged to
32-
* deliberately override certain bean definitions via an extra configuration file.
32+
* intentionally override certain bean definitions via an extra configuration
33+
* file appended to the list.
3334
*
3435
* @author Juergen Hoeller
3536
* @author Chris Beams
@@ -108,6 +109,11 @@ public void setEnvironment(ConfigurableEnvironment environment) {
108109
this.reader.setEnvironment(getEnvironment());
109110
}
110111

112+
113+
//---------------------------------------------------------------------
114+
// Convenient methods for loading XML bean definition files
115+
//---------------------------------------------------------------------
116+
111117
/**
112118
* Load bean definitions from the given XML resources.
113119
* @param resources one or more resources to load from

0 commit comments

Comments
 (0)