diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/support/ServerResponseResultHandler.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/support/ServerResponseResultHandler.java index 5ee09dd63786..7161de61331f 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/support/ServerResponseResultHandler.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/support/ServerResponseResultHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,26 +47,21 @@ public class ServerResponseResultHandler implements HandlerResultHandler, Initia private int order = 0; - /** - * Return the configured {@link HttpMessageWriter}'s. - */ - public List> getMessageWriters() { - return this.messageWriters; - } /** * Configure HTTP message writers to serialize the request body with. - *

By default this is set to {@link ServerCodecConfigurer}'s default writers. + *

By default, this is set to {@link ServerCodecConfigurer}'s default writers. */ public void setMessageWriters(List> configurer) { this.messageWriters = configurer; } /** - * Return the configured {@link ViewResolver}'s. + * Return the configured {@link HttpMessageWriter}'s. + * @since 6.2.3 */ - public List getViewResolvers() { - return this.viewResolvers; + public List> getMessageWriters() { + return this.messageWriters; } /** @@ -76,9 +71,17 @@ public void setViewResolvers(List viewResolvers) { this.viewResolvers = viewResolvers; } + /** + * Return the configured {@link ViewResolver}'s. + * @since 6.2.3 + */ + public List getViewResolvers() { + return this.viewResolvers; + } + /** * Set the order for this result handler relative to others. - *

By default set to 0. It is generally safe to place it early in the + *

By default, set to 0. It is generally safe to place it early in the * order as it looks for a concrete return type. */ public void setOrder(int order) {