From 79bdaad686ba3874611ff89ac0ca64966020da39 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 22 Aug 2017 10:03:32 +0200 Subject: [PATCH] Remove reference to HttpStatus This commit removes an import on a class in "spring-web" as this class is also meant to be used with Jersey only (i.e. when "spring-web" is not present on the classpath). Closes gh-10051 --- .../boot/actuate/endpoint/web/HealthStatusHttpMapper.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/HealthStatusHttpMapper.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/HealthStatusHttpMapper.java index 8ca471aa042..032e4f887e3 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/HealthStatusHttpMapper.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/HealthStatusHttpMapper.java @@ -21,7 +21,6 @@ import java.util.HashMap; import java.util.Map; import org.springframework.boot.actuate.health.Status; -import org.springframework.http.HttpStatus; import org.springframework.util.Assert; /** @@ -48,7 +47,7 @@ public class HealthStatusHttpMapper { /** * Set specific status mappings. - * @param statusMapping a map of status code to {@link HttpStatus} + * @param statusMapping a map of status code to {@code HttpStatus} */ public void setStatusMapping(Map statusMapping) { Assert.notNull(statusMapping, "StatusMapping must not be null"); @@ -57,7 +56,7 @@ public class HealthStatusHttpMapper { /** * Add specific status mappings to the existing set. - * @param statusMapping a map of status code to {@link HttpStatus} + * @param statusMapping a map of status code to {@code HttpStatus} */ public void addStatusMapping(Map statusMapping) { Assert.notNull(statusMapping, "StatusMapping must not be null");