From 8bb4020bd40ba587512503df0f66ab007d7575f1 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 29 Mar 2021 14:36:26 +0200 Subject: [PATCH] Polish See gh-25819 --- .../data/rest/SpringBootRepositoryRestConfigurer.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/rest/SpringBootRepositoryRestConfigurer.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/rest/SpringBootRepositoryRestConfigurer.java index ac0d8732cc..ad5eb597bc 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/rest/SpringBootRepositoryRestConfigurer.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/rest/SpringBootRepositoryRestConfigurer.java @@ -18,7 +18,6 @@ package org.springframework.boot.autoconfigure.data.rest; import com.fasterxml.jackson.databind.ObjectMapper; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.annotation.Order; import org.springframework.data.rest.core.config.RepositoryRestConfiguration; import org.springframework.data.rest.webmvc.config.RepositoryRestConfigurer; @@ -37,10 +36,8 @@ import org.springframework.web.servlet.config.annotation.CorsRegistry; @Order(0) class SpringBootRepositoryRestConfigurer implements RepositoryRestConfigurer { - @Autowired(required = false) private final Jackson2ObjectMapperBuilder objectMapperBuilder; - @Autowired private final RepositoryRestProperties properties; SpringBootRepositoryRestConfigurer(Jackson2ObjectMapperBuilder objectMapperBuilder,