From b42c7fca643a7e339d4470812750941a3da6920b Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 24 Dec 2014 11:33:11 -0800 Subject: [PATCH] Polish --- .../web/HttpMessageConvertersAutoConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/HttpMessageConvertersAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/HttpMessageConvertersAutoConfiguration.java index cae0b4f4a6..c536c68869 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/HttpMessageConvertersAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/HttpMessageConvertersAutoConfiguration.java @@ -83,8 +83,8 @@ public class HttpMessageConvertersAutoConfiguration { @ConditionalOnMissingBean public MappingJackson2HttpMessageConverter mappingJackson2HttpMessageConverter( ObjectMapper objectMapper) { - MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter(); - converter.setObjectMapper(objectMapper); + MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter( + objectMapper); if (this.properties.isJsonPrettyPrint() != null) { converter.setPrettyPrint(this.properties.isJsonPrettyPrint()); }