Skip to content

Commit 8325b10

Browse files
committed
Consistent formatting of license headers, package javadocs, and import declarations
1 parent b6fdcff commit 8325b10

File tree

2,059 files changed

+3929
-5458
lines changed

Some content is hidden

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

2,059 files changed

+3929
-5458
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.aspectj.lang.ProceedingJoinPoint;
2929
import org.aspectj.weaver.tools.PointcutParser;
3030
import org.aspectj.weaver.tools.PointcutPrimitive;
31+
3132
import org.springframework.core.ParameterNameDiscoverer;
3233
import org.springframework.util.StringUtils;
3334

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

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
import org.aspectj.lang.reflect.AjType;
3838
import org.aspectj.lang.reflect.AjTypeSystem;
3939
import org.aspectj.lang.reflect.PerClauseKind;
40+
4041
import org.springframework.aop.aspectj.AspectJExpressionPointcut;
4142
import org.springframework.aop.framework.AopConfigException;
4243
import org.springframework.core.ParameterNameDiscoverer;
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
21
/**
3-
*
42
* Classes enabling AspectJ 5 @Annotated classes to be used in Spring AOP.
53
*
64
* <p>Normally to be used through an AspectJAutoProxyCreator rather than directly.
7-
*
85
*/
96
package org.springframework.aop.aspectj.annotation;
10-
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
21
/**
3-
*
42
* Base classes enabling auto-proxying based on AspectJ.
53
* Support for AspectJ annotation aspects resides in the "aspectj.annotation" package.
6-
*
74
*/
85
package org.springframework.aop.aspectj.autoproxy;
9-
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/**
2-
*
32
* AspectJ integration package. Includes Spring AOP advice implementations for AspectJ 5
43
* annotation-style methods, and an AspectJExpressionPointcut: a Spring AOP Pointcut
54
* implementation that allows use of the AspectJ pointcut expression language with the Spring AOP
@@ -8,7 +7,5 @@
87
* <p>Note that use of this package does <i>not</i> require the use of the {@code ajc} compiler
98
* or AspectJ load-time weaver. It is intended to enable the use of a valuable subset of AspectJ
109
* functionality, with consistent semantics, with the proxy-based Spring AOP framework.
11-
*
1210
*/
1311
package org.springframework.aop.aspectj;
14-
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
21
/**
3-
*
42
* Support package for declarative AOP configuration,
53
* with XML schema being the primary configuration format.
6-
*
74
*/
85
package org.springframework.aop.config;
9-

spring-aop/src/main/java/org/springframework/aop/framework/ObjenesisCglibAopProxy.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
1-
21
/**
3-
*
42
* SPI package allowing Spring AOP framework to handle arbitrary advice types.
5-
* <br>
6-
* Users who want merely to <i>use</i> the Spring AOP framework, rather than extend
3+
*
4+
* <p>Users who want merely to <i>use</i> the Spring AOP framework, rather than extend
75
* its capabilities, don't need to concern themselves with this package.
8-
* <br>
9-
* You may wish to use these adapters to wrap Spring-specific advices, such as MethodBeforeAdvice,
10-
* in MethodInterceptor, to allow their use in another AOP framework supporting the AOP Alliance interfaces.
11-
* </br>
12-
* <br>
13-
* These adapters do not depend on any other Spring framework classes to allow such usage.
14-
* </br>
156
*
7+
* <p>You may wish to use these adapters to wrap Spring-specific advices, such as MethodBeforeAdvice,
8+
* in MethodInterceptor, to allow their use in another AOP framework supporting the AOP Alliance interfaces.
9+
*
10+
* <p>These adapters do not depend on any other Spring framework classes to allow such usage.
1611
*/
1712
package org.springframework.aop.framework.adapter;
18-
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
21
/**
3-
*
42
* Bean post-processors for use in ApplicationContexts to simplify AOP usage
53
* by automatically creating AOP proxies without the need to use a ProxyFactoryBean.
64
*
@@ -10,7 +8,5 @@
108
* <p><b>NB</b>: Automatic auto-proxying is not supported for BeanFactory implementations,
119
* as post-processors beans are only automatically detected in application contexts.
1210
* Post-processors can be explicitly registered on a ConfigurableBeanFactory instead.
13-
*
1411
*/
1512
package org.springframework.aop.framework.autoproxy;
16-

spring-aop/src/main/java/org/springframework/aop/framework/package-info.java

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
21
/**
3-
*
42
* Package containing Spring's basic AOP infrastructure, compliant with the
53
* <a href="http://aopalliance.sourceforge.net">AOP Alliance</a> interfaces.
64
*
@@ -13,7 +11,5 @@
1311
* <p>The ProxyFactoryBean is a convenient way to create AOP proxies in a BeanFactory
1412
* or ApplicationContext. However, proxies can be created programmatically using the
1513
* ProxyFactory class.
16-
*
1714
*/
1815
package org.springframework.aop.framework;
19-
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
21
/**
3-
*
42
* Provides miscellaneous interceptor implementations.
53
* More specific interceptors can be found in corresponding
64
* functionality packages, like "transaction" and "orm".
7-
*
85
*/
96
package org.springframework.aop.interceptor;
10-
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
1-
21
/**
3-
*
42
* Core Spring AOP interfaces, built on AOP Alliance AOP interoperability interfaces.
53
*
6-
* <br>Any AOP Alliance MethodInterceptor is usable in Spring.
4+
* <p>Any AOP Alliance MethodInterceptor is usable in Spring.
75
*
86
* <br>Spring AOP also offers:
97
* <ul>
10-
* <li>Introduction support
11-
* <li>A Pointcut abstraction, supporting "static" pointcuts
12-
* (class and method-based) and "dynamic" pointcuts (also considering method arguments).
13-
* There are currently no AOP Alliance interfaces for pointcuts.
14-
* <li>A full range of advice types, including around, before, after returning and throws advice.
15-
* <li>Extensibility allowing arbitrary custom advice types to
16-
* be plugged in without modifying the core framework.
8+
* <li>Introduction support
9+
* <li>A Pointcut abstraction, supporting "static" pointcuts
10+
* (class and method-based) and "dynamic" pointcuts (also considering method arguments).
11+
* There are currently no AOP Alliance interfaces for pointcuts.
12+
* <li>A full range of advice types, including around, before, after returning and throws advice.
13+
* <li>Extensibility allowing arbitrary custom advice types to
14+
* be plugged in without modifying the core framework.
1715
* </ul>
1816
*
19-
* <br>
20-
* Spring AOP can be used programmatically or (preferably)
17+
* <p>Spring AOP can be used programmatically or (preferably)
2118
* integrated with the Spring IoC container.
22-
*
2319
*/
2420
package org.springframework.aop;
25-
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
21
/**
3-
*
42
* Support for AOP-based scoping of target objects, with configurable backend.
5-
*
63
*/
74
package org.springframework.aop.scope;
8-

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818

1919
import java.io.Serializable;
2020
import java.lang.reflect.Method;
21+
import java.util.Arrays;
2122
import java.util.LinkedList;
2223
import java.util.List;
23-
import java.util.Arrays;
2424

2525
import org.springframework.util.ObjectUtils;
2626
import org.springframework.util.PatternMatchUtils;
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
21
/**
3-
*
42
* Annotation support for AOP pointcuts.
5-
*
63
*/
74
package org.springframework.aop.support.annotation;
8-
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
21
/**
3-
*
42
* Convenience classes for using Spring's AOP API.
5-
*
63
*/
74
package org.springframework.aop.support;
8-

spring-aop/src/main/resources/org/springframework/aop/config/spring-aop-2.0.xsd

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22

33
<xsd:schema xmlns="http://www.springframework.org/schema/aop"
4-
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5-
xmlns:beans="http://www.springframework.org/schema/beans"
6-
xmlns:tool="http://www.springframework.org/schema/tool"
7-
targetNamespace="http://www.springframework.org/schema/aop"
8-
elementFormDefault="qualified"
9-
attributeFormDefault="unqualified">
4+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5+
xmlns:tool="http://www.springframework.org/schema/tool"
6+
targetNamespace="http://www.springframework.org/schema/aop"
7+
elementFormDefault="qualified"
8+
attributeFormDefault="unqualified">
109

1110
<xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"/>
1211
<xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-2.0.xsd"/>

spring-aop/src/main/resources/org/springframework/aop/config/spring-aop-2.5.xsd

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22

33
<xsd:schema xmlns="http://www.springframework.org/schema/aop"
4-
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5-
xmlns:beans="http://www.springframework.org/schema/beans"
6-
xmlns:tool="http://www.springframework.org/schema/tool"
7-
targetNamespace="http://www.springframework.org/schema/aop"
8-
elementFormDefault="qualified"
9-
attributeFormDefault="unqualified">
4+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5+
xmlns:tool="http://www.springframework.org/schema/tool"
6+
targetNamespace="http://www.springframework.org/schema/aop"
7+
elementFormDefault="qualified"
8+
attributeFormDefault="unqualified">
109

1110
<xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"/>
1211
<xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-2.5.xsd"/>

spring-aop/src/main/resources/org/springframework/aop/config/spring-aop-3.0.xsd

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22

33
<xsd:schema xmlns="http://www.springframework.org/schema/aop"
4-
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5-
xmlns:beans="http://www.springframework.org/schema/beans"
6-
xmlns:tool="http://www.springframework.org/schema/tool"
7-
targetNamespace="http://www.springframework.org/schema/aop"
8-
elementFormDefault="qualified"
9-
attributeFormDefault="unqualified">
4+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5+
xmlns:tool="http://www.springframework.org/schema/tool"
6+
targetNamespace="http://www.springframework.org/schema/aop"
7+
elementFormDefault="qualified"
8+
attributeFormDefault="unqualified">
109

1110
<xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"/>
1211
<xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-3.0.xsd"/>

spring-aop/src/main/resources/org/springframework/aop/config/spring-aop-3.1.xsd

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22

33
<xsd:schema xmlns="http://www.springframework.org/schema/aop"
4-
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5-
xmlns:beans="http://www.springframework.org/schema/beans"
6-
xmlns:tool="http://www.springframework.org/schema/tool"
7-
targetNamespace="http://www.springframework.org/schema/aop"
8-
elementFormDefault="qualified"
9-
attributeFormDefault="unqualified">
4+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5+
xmlns:tool="http://www.springframework.org/schema/tool"
6+
targetNamespace="http://www.springframework.org/schema/aop"
7+
elementFormDefault="qualified"
8+
attributeFormDefault="unqualified">
109

1110
<xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"/>
1211
<xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-3.1.xsd"/>

spring-aop/src/main/resources/org/springframework/aop/config/spring-aop-3.2.xsd

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22

33
<xsd:schema xmlns="http://www.springframework.org/schema/aop"
4-
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5-
xmlns:beans="http://www.springframework.org/schema/beans"
6-
xmlns:tool="http://www.springframework.org/schema/tool"
7-
targetNamespace="http://www.springframework.org/schema/aop"
8-
elementFormDefault="qualified"
9-
attributeFormDefault="unqualified">
4+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5+
xmlns:tool="http://www.springframework.org/schema/tool"
6+
targetNamespace="http://www.springframework.org/schema/aop"
7+
elementFormDefault="qualified"
8+
attributeFormDefault="unqualified">
109

1110
<xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-3.2.xsd"/>
1211
<xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-3.2.xsd"/>

spring-aop/src/main/resources/org/springframework/aop/config/spring-aop-4.0.xsd

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22

33
<xsd:schema xmlns="http://www.springframework.org/schema/aop"
4-
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5-
xmlns:beans="http://www.springframework.org/schema/beans"
6-
xmlns:tool="http://www.springframework.org/schema/tool"
7-
targetNamespace="http://www.springframework.org/schema/aop"
8-
elementFormDefault="qualified"
9-
attributeFormDefault="unqualified">
4+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5+
xmlns:tool="http://www.springframework.org/schema/tool"
6+
targetNamespace="http://www.springframework.org/schema/aop"
7+
elementFormDefault="qualified"
8+
attributeFormDefault="unqualified">
109

1110
<xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-4.0.xsd"/>
1211
<xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-4.0.xsd"/>

spring-aop/src/main/resources/org/springframework/aop/config/spring-aop-4.1.xsd

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22

33
<xsd:schema xmlns="http://www.springframework.org/schema/aop"
4-
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5-
xmlns:beans="http://www.springframework.org/schema/beans"
6-
xmlns:tool="http://www.springframework.org/schema/tool"
7-
targetNamespace="http://www.springframework.org/schema/aop"
8-
elementFormDefault="qualified"
9-
attributeFormDefault="unqualified">
4+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5+
xmlns:tool="http://www.springframework.org/schema/tool"
6+
targetNamespace="http://www.springframework.org/schema/aop"
7+
elementFormDefault="qualified"
8+
attributeFormDefault="unqualified">
109

1110
<xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-4.1.xsd"/>
1211
<xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-4.1.xsd"/>

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
*/
1616
package org.springframework.aop.aspectj;
1717

18-
import static org.junit.Assert.*;
18+
import java.lang.reflect.Method;
1919

2020
import org.aspectj.lang.JoinPoint;
2121
import org.junit.Test;
22+
2223
import org.springframework.aop.aspectj.AspectJAdviceParameterNameDiscoverer.AmbiguousBindingException;
2324

24-
import java.lang.reflect.Method;
25+
import static org.junit.Assert.*;
2526

2627
/**
2728
* Unit tests for the {@link AspectJAdviceParameterNameDiscoverer} class.

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
package org.springframework.aop.aspectj;
1818

19-
import static org.junit.Assert.*;
20-
2119
import java.lang.reflect.Method;
2220

2321
import org.aopalliance.intercept.MethodInterceptor;
@@ -27,17 +25,19 @@
2725
import org.aspectj.weaver.tools.UnsupportedPointcutPrimitiveException;
2826
import org.junit.Before;
2927
import org.junit.Test;
28+
3029
import org.springframework.aop.ClassFilter;
3130
import org.springframework.aop.MethodMatcher;
3231
import org.springframework.aop.Pointcut;
3332
import org.springframework.aop.framework.ProxyFactory;
3433
import org.springframework.aop.support.DefaultPointcutAdvisor;
35-
3634
import org.springframework.tests.sample.beans.IOther;
3735
import org.springframework.tests.sample.beans.ITestBean;
3836
import org.springframework.tests.sample.beans.TestBean;
3937
import org.springframework.tests.sample.beans.subpkg.DeepBean;
4038

39+
import static org.junit.Assert.*;
40+
4141
/**
4242
* @author Rob Harrop
4343
* @author Rod Johnson

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616

1717
package org.springframework.aop.aspectj;
1818

19-
import static org.junit.Assert.*;
20-
2119
import org.junit.Test;
2220

2321
import org.springframework.tests.sample.beans.TestBean;
2422

23+
import static org.junit.Assert.*;
24+
2525
/**
2626
* Tests for matching of bean() pointcut designator.
2727
*

0 commit comments

Comments
 (0)