Skip to content

Commit fc46abf

Browse files
committed
Polishing
1 parent 1ccd99e commit fc46abf

File tree

19 files changed

+32
-32
lines changed

19 files changed

+32
-32
lines changed

spring-beans/src/main/java/org/springframework/beans/propertyeditors/CustomCollectionEditor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2019 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.
@@ -150,7 +150,7 @@ else if (value.getClass().isArray()) {
150150
* @param initialCapacity the initial capacity
151151
* @return the new Collection instance
152152
*/
153-
@SuppressWarnings({ "rawtypes", "unchecked" })
153+
@SuppressWarnings({"rawtypes", "unchecked"})
154154
protected Collection<Object> createCollection(Class<? extends Collection> collectionType, int initialCapacity) {
155155
if (!collectionType.isInterface()) {
156156
try {

spring-beans/src/main/java/org/springframework/beans/propertyeditors/CustomMapEditor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2019 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.
@@ -126,7 +126,7 @@ else if (value instanceof Map) {
126126
* @param initialCapacity the initial capacity
127127
* @return the new Map instance
128128
*/
129-
@SuppressWarnings({ "rawtypes", "unchecked" })
129+
@SuppressWarnings({"rawtypes", "unchecked"})
130130
protected Map<Object, Object> createMap(Class<? extends Map> mapType, int initialCapacity) {
131131
if (!mapType.isInterface()) {
132132
try {

spring-context/src/main/java/org/springframework/cache/annotation/CacheEvict.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* @since 3.1
3939
* @see CacheConfig
4040
*/
41-
@Target({ElementType.METHOD, ElementType.TYPE})
41+
@Target({ElementType.TYPE, ElementType.METHOD})
4242
@Retention(RetentionPolicy.RUNTIME)
4343
@Inherited
4444
@Documented

spring-context/src/main/java/org/springframework/cache/annotation/CachePut.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* @since 3.1
4646
* @see CacheConfig
4747
*/
48-
@Target({ElementType.METHOD, ElementType.TYPE})
48+
@Target({ElementType.TYPE, ElementType.METHOD})
4949
@Retention(RetentionPolicy.RUNTIME)
5050
@Inherited
5151
@Documented

spring-context/src/main/java/org/springframework/cache/annotation/Cacheable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
* @since 3.1
5353
* @see CacheConfig
5454
*/
55-
@Target({ElementType.METHOD, ElementType.TYPE})
55+
@Target({ElementType.TYPE, ElementType.METHOD})
5656
@Retention(RetentionPolicy.RUNTIME)
5757
@Inherited
5858
@Documented

spring-context/src/main/java/org/springframework/cache/annotation/Caching.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* @author Chris Beams
3434
* @since 3.1
3535
*/
36-
@Target({ElementType.METHOD, ElementType.TYPE})
36+
@Target({ElementType.TYPE, ElementType.METHOD})
3737
@Retention(RetentionPolicy.RUNTIME)
3838
@Inherited
3939
@Documented

spring-context/src/main/java/org/springframework/context/annotation/Description.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* @since 4.0
3131
* @see org.springframework.beans.factory.config.BeanDefinition#getDescription()
3232
*/
33-
@Target({ElementType.METHOD, ElementType.TYPE})
33+
@Target({ElementType.TYPE, ElementType.METHOD})
3434
@Retention(RetentionPolicy.RUNTIME)
3535
@Documented
3636
public @interface Description {

spring-context/src/main/java/org/springframework/scheduling/annotation/Async.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* @see AnnotationAsyncExecutionInterceptor
4949
* @see AsyncAnnotationAdvisor
5050
*/
51-
@Target({ElementType.METHOD, ElementType.TYPE})
51+
@Target({ElementType.TYPE, ElementType.METHOD})
5252
@Retention(RetentionPolicy.RUNTIME)
5353
@Documented
5454
public @interface Async {

spring-core/src/main/java/org/springframework/core/CollectionFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public static boolean isApproximableCollectionType(@Nullable Class<?> collection
119119
* @see java.util.TreeSet
120120
* @see java.util.LinkedHashSet
121121
*/
122-
@SuppressWarnings({ "unchecked", "cast", "rawtypes" })
122+
@SuppressWarnings({"rawtypes", "unchecked", "cast"})
123123
public static <E> Collection<E> createApproximateCollection(@Nullable Object collection, int capacity) {
124124
if (collection instanceof LinkedList) {
125125
return new LinkedList<>();
@@ -178,7 +178,7 @@ public static <E> Collection<E> createCollection(Class<?> collectionType, int ca
178178
* {@code null}; or if the desired {@code collectionType} is {@link EnumSet} and
179179
* the supplied {@code elementType} is not a subtype of {@link Enum}
180180
*/
181-
@SuppressWarnings({ "unchecked", "cast" })
181+
@SuppressWarnings({"unchecked", "cast"})
182182
public static <E> Collection<E> createCollection(Class<?> collectionType, @Nullable Class<?> elementType, int capacity) {
183183
Assert.notNull(collectionType, "Collection type must not be null");
184184
if (collectionType.isInterface()) {

spring-expression/src/main/java/org/springframework/expression/spel/ast/Indexer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 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.
@@ -639,7 +639,7 @@ public boolean isWritable() {
639639
}
640640

641641

642-
@SuppressWarnings({ "rawtypes", "unchecked" })
642+
@SuppressWarnings({"rawtypes", "unchecked"})
643643
private class CollectionIndexingValueRef implements ValueRef {
644644

645645
private final Collection collection;

0 commit comments

Comments
 (0)