From 9c5f207e2221226c9cfdb1970bb2ed2946e142d1 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Fri, 25 May 2018 20:57:46 -0700 Subject: [PATCH] Fix merge error --- .../boot/autoconfigure/jersey/JerseyAutoConfiguration.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jersey/JerseyAutoConfiguration.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jersey/JerseyAutoConfiguration.java index c8ffa1ffbe..af61046450 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jersey/JerseyAutoConfiguration.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jersey/JerseyAutoConfiguration.java @@ -237,9 +237,8 @@ public class JerseyAutoConfiguration implements ServletContextAware { final ObjectMapper objectMapper) { addJaxbAnnotationIntrospectorIfPresent(objectMapper); return (ResourceConfig config) -> { - JerseyAutoConfiguration.this.config.register(JacksonFeature.class); - JerseyAutoConfiguration.this.config.register( - new ObjectMapperContextResolver(objectMapper), + config.register(JacksonFeature.class); + config.register(new ObjectMapperContextResolver(objectMapper), ContextResolver.class); }; }