Skip to content

Commit 2099e04

Browse files
committedFeb 18, 2025·
Polishing
See gh-34439
1 parent 2ee7a8e commit 2099e04

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎spring-web/src/main/java/org/springframework/web/client/DefaultRestClientBuilder.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ public RestClient.Builder apply(Consumer<RestClient.Builder> builderConsumer) {
444444
private List<HttpMessageConverter<?>> initMessageConverters() {
445445
if (this.messageConverters == null) {
446446
this.messageConverters = new ArrayList<>();
447+
447448
this.messageConverters.add(new ByteArrayHttpMessageConverter());
448449
this.messageConverters.add(new StringHttpMessageConverter());
449450
this.messageConverters.add(new ResourceHttpMessageConverter(false));
@@ -477,19 +478,21 @@ else if (gsonPresent) {
477478
else if (jsonbPresent) {
478479
this.messageConverters.add(new JsonbHttpMessageConverter());
479480
}
481+
480482
if (jackson2SmilePresent) {
481483
this.messageConverters.add(new MappingJackson2SmileHttpMessageConverter());
482484
}
485+
483486
if (jackson2CborPresent) {
484487
this.messageConverters.add(new MappingJackson2CborHttpMessageConverter());
485488
}
486489
else if (kotlinSerializationCborPresent) {
487490
this.messageConverters.add(new KotlinSerializationCborHttpMessageConverter());
488491
}
492+
489493
if (jackson2YamlPresent) {
490494
this.messageConverters.add(new MappingJackson2YamlHttpMessageConverter());
491495
}
492-
493496
}
494497
return this.messageConverters;
495498
}

0 commit comments

Comments
 (0)
Please sign in to comment.