Skip to content

Commit 1cea1fe

Browse files
committed
Polishing contribution
Closes gh-34066
1 parent 8b07f93 commit 1cea1fe

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

spring-webflux/src/main/java/org/springframework/web/reactive/function/server/support/ServerResponseResultHandler.java

+15-12
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-2015 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.
@@ -47,26 +47,21 @@ public class ServerResponseResultHandler implements HandlerResultHandler, Initia
4747

4848
private int order = 0;
4949

50-
/**
51-
* Return the configured {@link HttpMessageWriter}'s.
52-
*/
53-
public List<HttpMessageWriter<?>> getMessageWriters() {
54-
return this.messageWriters;
55-
}
5650

5751
/**
5852
* Configure HTTP message writers to serialize the request body with.
59-
* <p>By default this is set to {@link ServerCodecConfigurer}'s default writers.
53+
* <p>By default, this is set to {@link ServerCodecConfigurer}'s default writers.
6054
*/
6155
public void setMessageWriters(List<HttpMessageWriter<?>> configurer) {
6256
this.messageWriters = configurer;
6357
}
6458

6559
/**
66-
* Return the configured {@link ViewResolver}'s.
60+
* Return the configured {@link HttpMessageWriter}'s.
61+
* @since 6.2.3
6762
*/
68-
public List<ViewResolver> getViewResolvers() {
69-
return this.viewResolvers;
63+
public List<HttpMessageWriter<?>> getMessageWriters() {
64+
return this.messageWriters;
7065
}
7166

7267
/**
@@ -76,9 +71,17 @@ public void setViewResolvers(List<ViewResolver> viewResolvers) {
7671
this.viewResolvers = viewResolvers;
7772
}
7873

74+
/**
75+
* Return the configured {@link ViewResolver}'s.
76+
* @since 6.2.3
77+
*/
78+
public List<ViewResolver> getViewResolvers() {
79+
return this.viewResolvers;
80+
}
81+
7982
/**
8083
* Set the order for this result handler relative to others.
81-
* <p>By default set to 0. It is generally safe to place it early in the
84+
* <p>By default, set to 0. It is generally safe to place it early in the
8285
* order as it looks for a concrete return type.
8386
*/
8487
public void setOrder(int order) {

0 commit comments

Comments
 (0)