Skip to content

Commit 9b10bb5

Browse files
committed
Polishing
1 parent 727ccd0 commit 9b10bb5

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

spring-web/src/main/java/org/springframework/web/filter/CharacterEncodingFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
* @since 15.03.2004
4242
* @see #setEncoding
4343
* @see #setForceEncoding
44-
* @see jakarta.servlet.http.HttpServletRequest#setCharacterEncoding
45-
* @see jakarta.servlet.http.HttpServletResponse#setCharacterEncoding
44+
* @see jakarta.servlet.http.HttpServletRequest#setCharacterEncoding(String)
45+
* @see jakarta.servlet.http.HttpServletResponse#setCharacterEncoding(String)
4646
*/
4747
public class CharacterEncodingFilter extends OncePerRequestFilter {
4848

spring-webflux/src/test/java/org/springframework/web/reactive/config/WebFluxViewResolutionIntegrationTests.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ class WebFluxViewResolutionIntegrationTests {
5959
private static final MediaType TEXT_HTML_ISO_8859_1 = MediaType.parseMediaType("text/html;charset=ISO-8859-1");
6060

6161

62-
6362
@Nested
6463
class FreeMarkerTests {
6564

@@ -115,6 +114,7 @@ public void configureViewResolvers(ViewResolverRegistry registry) {
115114
}
116115
}
117116

117+
118118
@Configuration(proxyBeanMethods = false)
119119
static class FreeMarkerWebFluxConfig extends AbstractWebFluxConfig {
120120

@@ -131,6 +131,7 @@ public FreeMarkerConfigurer freeMarkerConfigurer() {
131131
}
132132
}
133133

134+
134135
@Configuration(proxyBeanMethods = false)
135136
static class ExplicitDefaultEncodingConfig extends AbstractWebFluxConfig {
136137

@@ -148,6 +149,7 @@ public FreeMarkerConfigurer freeMarkerConfigurer() {
148149
}
149150
}
150151

152+
151153
@Configuration(proxyBeanMethods = false)
152154
static class ExplicitDefaultEncodingAndContentTypeConfig extends AbstractWebFluxConfig {
153155

@@ -196,6 +198,7 @@ public SampleController sampleController() {
196198
}
197199
}
198200

201+
199202
@Controller
200203
static class SampleController {
201204

spring-webmvc/src/main/java/org/springframework/web/servlet/function/ErrorHandlingServerResponse.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
/**
3636
* Base class for {@link ServerResponse} implementations with error handling.
37+
*
3738
* @author Arjen Poutsma
3839
* @since 5.3
3940
*/
@@ -81,6 +82,7 @@ else if (t instanceof IOException ioException ) {
8182
return null;
8283
}
8384

85+
8486
private static class ErrorHandler<T extends ServerResponse> {
8587

8688
private final Predicate<Throwable> predicate;

spring-webmvc/src/main/java/org/springframework/web/servlet/view/xslt/XsltView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ protected final void copyModelParameters(Map<String, Object> model, Transformer
395395
* Configure the supplied {@link HttpServletResponse}.
396396
* <p>The default implementation of this method sets the
397397
* {@link HttpServletResponse#setContentType content type} and
398-
* {@link HttpServletResponse#setCharacterEncoding encoding}
398+
* {@link HttpServletResponse#setCharacterEncoding(String) encoding}
399399
* from the "media-type" and "encoding" output properties
400400
* specified in the {@link Transformer}.
401401
* @param model merged output Map (never {@code null})

0 commit comments

Comments
 (0)