diff --git a/spring-core/src/main/java/org/springframework/core/codec/DecodingException.java b/spring-core/src/main/java/org/springframework/core/codec/DecodingException.java index 094bad6ba1..3cf4b62f3e 100644 --- a/spring-core/src/main/java/org/springframework/core/codec/DecodingException.java +++ b/spring-core/src/main/java/org/springframework/core/codec/DecodingException.java @@ -16,13 +16,13 @@ package org.springframework.core.codec; /** - * Indicates an issue with decoding the input stream with the focus on indicating - * a content issue such as a parse failure. As opposed to a more general I/O + * Indicates an issue with decoding the input stream with a focus on content + * related issues such as a parse failure. As opposed to more general I/O * errors, illegal state, or a {@link CodecException} such as a configuration * issue that a {@link Decoder} may choose to raise. * - *

For example in a web application, a server side {@code DecodingException} - * would translate to a response with a 400 (bad input) status while + *

For example in server web application, a {@code DecodingException} would + * translate to a response with a 400 (bad input) status while * {@code CodecException} would translate to 500 (server error) status. * * @author Rossen Stoyanchev diff --git a/spring-core/src/main/java/org/springframework/core/codec/EncodingException.java b/spring-core/src/main/java/org/springframework/core/codec/EncodingException.java index e1eab9683b..f987adb1c3 100644 --- a/spring-core/src/main/java/org/springframework/core/codec/EncodingException.java +++ b/spring-core/src/main/java/org/springframework/core/codec/EncodingException.java @@ -17,9 +17,9 @@ package org.springframework.core.codec; /** * Indicates an issue with encoding the input Object stream with a focus on - * indicating the Objects cannot be encoded. As opposed to a more general - * {@link CodecException} such as a configuration issue that an {@link Encoder} - * may also choose to raise. + * not being able to encode Objects. As opposed to a more general I/O errors + * or a {@link CodecException} such as a configuration issue that an + * {@link Encoder} may also choose to raise. * * @author Rossen Stoyanchev * @since 5.0