Skip to content

Commit d7d44c6

Browse files
committed
Polishing
1 parent 330d2a5 commit d7d44c6

File tree

6 files changed

+13
-15
lines changed

6 files changed

+13
-15
lines changed

spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java

+5-7
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ private static MergedAnnotations getRepeatableAnnotations(AnnotatedElement eleme
780780
if (containerType == null) {
781781
// Invoke RepeatableContainers.of() in order to adhere to the contract of
782782
// getMergedRepeatableAnnotations() which states that an IllegalArgumentException
783-
// will be thrown if the the container cannot be resolved.
783+
// will be thrown if the container cannot be resolved.
784784
//
785785
// In any case, we use standardRepeatables() in order to support repeatable
786786
// annotations on other types of repeatable annotations (i.e., nested repeatable
@@ -807,7 +807,7 @@ private static MergedAnnotations findRepeatableAnnotations(AnnotatedElement elem
807807
if (containerType == null) {
808808
// Invoke RepeatableContainers.of() in order to adhere to the contract of
809809
// findMergedRepeatableAnnotations() which states that an IllegalArgumentException
810-
// will be thrown if the the container cannot be resolved.
810+
// will be thrown if the container cannot be resolved.
811811
//
812812
// In any case, we use standardRepeatables() in order to support repeatable
813813
// annotations on other types of repeatable annotations (i.e., nested repeatable
@@ -829,8 +829,7 @@ private static MultiValueMap<String, Object> nullIfEmpty(MultiValueMap<String, O
829829
}
830830

831831
private static <A extends Annotation> Comparator<MergedAnnotation<A>> highAggregateIndexesFirst() {
832-
return Comparator.<MergedAnnotation<A>> comparingInt(
833-
MergedAnnotation::getAggregateIndex).reversed();
832+
return Comparator.<MergedAnnotation<A>> comparingInt(MergedAnnotation::getAggregateIndex).reversed();
834833
}
835834

836835
@Nullable
@@ -840,13 +839,12 @@ private static AnnotationAttributes getAnnotationAttributes(MergedAnnotation<?>
840839
if (!annotation.isPresent()) {
841840
return null;
842841
}
843-
return annotation.asAnnotationAttributes(
844-
Adapt.values(classValuesAsString, nestedAnnotationsAsMap));
842+
return annotation.asAnnotationAttributes(Adapt.values(classValuesAsString, nestedAnnotationsAsMap));
845843
}
846844

847845

848846
/**
849-
* Adapted {@link AnnotatedElement} that hold specific annotations.
847+
* Adapted {@link AnnotatedElement} that holds specific annotations.
850848
*/
851849
private static class AnnotatedElementForAnnotations implements AnnotatedElement {
852850

spring-test/src/main/java/org/springframework/mock/web/MockHttpServletRequest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -77,7 +77,7 @@
7777
* is {@link Locale#ENGLISH}. This value can be changed via {@link #addPreferredLocale}
7878
* or {@link #setPreferredLocales}.
7979
*
80-
* <p>As of Spring Framework 5.0, this set of mocks is designed on a Servlet 4.0 baseline.
80+
* <p>As of Spring 5.0, this set of mocks is designed on a Servlet 4.0 baseline.
8181
*
8282
* @author Juergen Hoeller
8383
* @author Rod Johnson

spring-test/src/main/java/org/springframework/mock/web/MockHttpServletResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
/**
5454
* Mock implementation of the {@link javax.servlet.http.HttpServletResponse} interface.
5555
*
56-
* <p>As of Spring Framework 5.0, this set of mocks is designed on a Servlet 4.0 baseline.
56+
* <p>As of Spring 5.0, this set of mocks is designed on a Servlet 4.0 baseline.
5757
*
5858
* @author Juergen Hoeller
5959
* @author Rod Johnson

spring-web/src/testFixtures/java/org/springframework/web/testfixture/servlet/MockHttpServletRequest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -78,7 +78,7 @@
7878
* is {@link Locale#ENGLISH}. This value can be changed via {@link #addPreferredLocale}
7979
* or {@link #setPreferredLocales}.
8080
*
81-
* <p>As of Spring Framework 5.0, this set of mocks is designed on a Servlet 4.0 baseline.
81+
* <p>As of Spring 5.0, this set of mocks is designed on a Servlet 4.0 baseline.
8282
*
8383
* @author Juergen Hoeller
8484
* @author Rod Johnson

spring-web/src/testFixtures/java/org/springframework/web/testfixture/servlet/MockHttpServletResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
/**
5454
* Mock implementation of the {@link javax.servlet.http.HttpServletResponse} interface.
5555
*
56-
* <p>As of Spring Framework 5.0, this set of mocks is designed on a Servlet 4.0 baseline.
56+
* <p>As of Spring 5.0, this set of mocks is designed on a Servlet 4.0 baseline.
5757
*
5858
* @author Juergen Hoeller
5959
* @author Rod Johnson

spring-websocket/src/main/java/org/springframework/web/socket/server/standard/AbstractTyrusRequestUpgradeStrategy.java

+2-2
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-2022 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.
@@ -73,7 +73,7 @@ public abstract class AbstractTyrusRequestUpgradeStrategy extends AbstractStanda
7373

7474
private static final Constructor<?> constructor;
7575

76-
private static boolean constructorWithBooleanArgument;
76+
private static final boolean constructorWithBooleanArgument;
7777

7878
private static final Method registerMethod;
7979

0 commit comments

Comments
 (0)