Skip to content

Commit 567c769

Browse files
committed
Polishing
1 parent 2267080 commit 567c769

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

spring-messaging/src/main/java/org/springframework/messaging/converter/ProtobufMessageConverter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@
4848
* <p>This converter supports by default {@code "application/x-protobuf"} with the official
4949
* {@code "com.google.protobuf:protobuf-java"} library.
5050
*
51-
* <p>{@code "application/json"} can be supported with the official {@code "com.google.protobuf:protobuf-java-util"} 3.x
52-
* with 3.3 or higher recommended
51+
* <p>{@code "application/json"} can be supported with the official
52+
* {@code "com.google.protobuf:protobuf-java-util"} 3.x, with 3.3 or higher recommended.
5353
*
5454
* @author Parviz Rozikov
55+
* @author Rossen Stoyanchev
5556
* @since 5.2.2
5657
*/
5758
public class ProtobufMessageConverter extends AbstractMessageConverter {
5859

59-
6060
/**
6161
* The default charset used by the converter.
6262
*/
@@ -187,7 +187,7 @@ else if (this.protobufFormatSupport != null) {
187187
}
188188
}
189189
catch (IOException ex) {
190-
throw new MessageConversionException("Could not write proto message" + ex.getMessage(), ex);
190+
throw new MessageConversionException("Failed to print Protobuf message: " + ex.getMessage(), ex);
191191

192192
}
193193
return payload;

spring-web/src/main/java/org/springframework/http/converter/FormHttpMessageConverter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,8 @@ private void writeForm(MultiValueMap<String, Object> formData, @Nullable MediaTy
408408
* {@linkplain #setCharset(Charset) charset} if it does not have one.
409409
* If {@code contentType} is {@code null},
410410
* {@code application/x-www-form-urlencoded; charset=UTF-8} is returned.
411-
*
412411
* <p>Subclasses can override this method to change this behavior.
413-
* @param contentType the preferred content type, can be {@code null}
412+
* @param contentType the preferred content type (can be {@code null})
414413
* @return the content type to be used
415414
* @since 5.2.2
416415
*/

spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultExchangeStrategiesBuilder.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* Default implementation of {@link ExchangeStrategies.Builder}.
3030
*
3131
* @author Arjen Poutsma
32+
* @author Brian Clozel
3233
* @since 5.0
3334
*/
3435
final class DefaultExchangeStrategiesBuilder implements ExchangeStrategies.Builder {
@@ -79,7 +80,6 @@ private static class DefaultExchangeStrategies implements ExchangeStrategies {
7980

8081
private final List<HttpMessageWriter<?>> writers;
8182

82-
8383
public DefaultExchangeStrategies(ClientCodecConfigurer codecConfigurer) {
8484
this.codecConfigurer = codecConfigurer;
8585
this.readers = unmodifiableCopy(this.codecConfigurer.getReaders());
@@ -90,9 +90,8 @@ private static <T> List<T> unmodifiableCopy(List<? extends T> list) {
9090
return Collections.unmodifiableList(new ArrayList<>(list));
9191
}
9292

93-
94-
@Override
9593
@Deprecated
94+
@Override
9695
public Builder mutate() {
9796
return new DefaultExchangeStrategiesBuilder(this);
9897
}

0 commit comments

Comments
 (0)