Skip to content

Commit 85d029f

Browse files
izeyesbrannen
authored andcommitted
Polishing
Closes gh-29410
1 parent 5ef3aab commit 85d029f

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

spring-core/src/main/java/org/springframework/aot/hint/ResourceBundleHint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public Builder onReachableType(TypeReference reachableType) {
100100
}
101101

102102
/**
103-
* Use the the {@code baseName} of the resource bundle.
103+
* Use the {@code baseName} of the resource bundle.
104104
* @return {@code this}, to facilitate method chaining
105105
*/
106106
public Builder baseName(String baseName) {

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

Lines changed: 2 additions & 2 deletions
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

spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public class ExceptionHandlerExceptionResolver extends AbstractHandlerMethodExce
8888
@Nullable
8989
private HandlerMethodReturnValueHandlerComposite returnValueHandlers;
9090

91-
private List<HttpMessageConverter<?>> messageConverters = new ArrayList<>();
91+
private final List<HttpMessageConverter<?>> messageConverters = new ArrayList<>();
9292

9393
private ContentNegotiationManager contentNegotiationManager = new ContentNegotiationManager();
9494

spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
150150

151151
private ContentNegotiationManager contentNegotiationManager = new ContentNegotiationManager();
152152

153-
private List<HttpMessageConverter<?>> messageConverters = new ArrayList<>();
153+
private final List<HttpMessageConverter<?>> messageConverters = new ArrayList<>();
154154

155155
private final List<Object> requestResponseBodyAdvice = new ArrayList<>();
156156

src/docs/asciidoc/web/webflux.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3652,9 +3652,9 @@ from an existing `ProblemDetail`. This could be done centrally, e.g. from an
36523652

36533653

36543654

3655-
[[webflux-ann-rest-exceptions-i8n]]
3655+
[[webflux-ann-rest-exceptions-i18n]]
36563656
=== Internationalization
3657-
[.small]#<<webmvc.adoc#mvc-ann-rest-exceptions-i8n, Web MVC>>#
3657+
[.small]#<<webmvc.adoc#mvc-ann-rest-exceptions-i18n, Web MVC>>#
36583658

36593659
It is a common requirement to internationalize error response details, and good practice
36603660
to customize the problem details for Spring WebFlux exceptions. This is supported as follows:

src/docs/asciidoc/web/webmvc.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4948,9 +4948,9 @@ from an existing `ProblemDetail`. This could be done centrally, e.g. from an
49484948

49494949

49504950

4951-
[[mvc-ann-rest-exceptions-i8n]]
4951+
[[mvc-ann-rest-exceptions-i18n]]
49524952
=== Internationalization
4953-
[.small]#<<web-reactive.adoc#webflux-ann-rest-exceptions-i8n, WebFlux>>#
4953+
[.small]#<<web-reactive.adoc#webflux-ann-rest-exceptions-i18n, WebFlux>>#
49544954

49554955
It is a common requirement to internationalize error response details, and good practice
49564956
to customize the problem details for Spring MVC exceptions. This is supported as follows:

0 commit comments

Comments
 (0)