diff --git a/spring-web/src/main/java/org/springframework/http/codec/ClientCodecConfigurer.java b/spring-web/src/main/java/org/springframework/http/codec/ClientCodecConfigurer.java index cfba0520ea8..e2760e2182d 100644 --- a/spring-web/src/main/java/org/springframework/http/codec/ClientCodecConfigurer.java +++ b/spring-web/src/main/java/org/springframework/http/codec/ClientCodecConfigurer.java @@ -84,11 +84,11 @@ public interface ClientCodecConfigurer extends CodecConfigurer { /** * Configure the {@code Decoder} to use for Server-Sent Events. - *

By default if this is not set, and Jackson is available, the - * {@link #jackson2JsonDecoder} override is used instead. Use this property - * if you want to further customize the SSE decoder. - *

Note that {@link #maxInMemorySize(int)}, if configured, will be - * applied to the given decoder. + *

By default if this is not set, and Jackson is available, + * the {@link #jackson2JsonDecoder} override is used instead. + * Use this method to customize the SSE decoder. + *

Note that {@link #maxInMemorySize(int)}, if configured, + * will be applied to the given decoder. * @param decoder the decoder to use */ void serverSentEventDecoder(Decoder decoder); diff --git a/spring-web/src/main/java/org/springframework/http/codec/ServerCodecConfigurer.java b/spring-web/src/main/java/org/springframework/http/codec/ServerCodecConfigurer.java index 767ab738e0d..864ea6dc112 100644 --- a/spring-web/src/main/java/org/springframework/http/codec/ServerCodecConfigurer.java +++ b/spring-web/src/main/java/org/springframework/http/codec/ServerCodecConfigurer.java @@ -78,15 +78,15 @@ public interface ServerCodecConfigurer extends CodecConfigurer { /** - * {@link CodecConfigurer.DefaultCodecs} extension with extra client-side options. + * {@link CodecConfigurer.DefaultCodecs} extension with extra server-side options. */ interface ServerDefaultCodecs extends DefaultCodecs { /** * Configure the {@code Encoder} to use for Server-Sent Events. - *

By default if this is not set, and Jackson is available, the - * {@link #jackson2JsonEncoder} override is used instead. Use this method - * to customize the SSE encoder. + *

By default if this is not set, and Jackson is available, + * the {@link #jackson2JsonEncoder} override is used instead. + * Use this method to customize the SSE encoder. */ void serverSentEventEncoder(Encoder encoder); } diff --git a/spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpResponse.java b/spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpResponse.java index 91c52a45c4f..888d58a84bd 100644 --- a/spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpResponse.java +++ b/spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpResponse.java @@ -119,7 +119,7 @@ public abstract class AbstractServerHttpResponse implements ServerHttpResponse { @Override @Nullable public Integer getRawStatusCode() { - return this.statusCode != null ? this.statusCode.value() : null; + return (this.statusCode != null ? this.statusCode.value() : null); } @Override