Skip to content

Commit 79bdaad

Browse files
committed
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
1 parent f801c12 commit 79bdaad

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/HealthStatusHttpMapper.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import java.util.Map;
2222

2323
import org.springframework.boot.actuate.health.Status;
24-
import org.springframework.http.HttpStatus;
2524
import org.springframework.util.Assert;
2625

2726
/**
@@ -48,7 +47,7 @@ private void setupDefaultStatusMapping() {
4847

4948
/**
5049
* Set specific status mappings.
51-
* @param statusMapping a map of status code to {@link HttpStatus}
50+
* @param statusMapping a map of status code to {@code HttpStatus}
5251
*/
5352
public void setStatusMapping(Map<String, Integer> statusMapping) {
5453
Assert.notNull(statusMapping, "StatusMapping must not be null");
@@ -57,7 +56,7 @@ public void setStatusMapping(Map<String, Integer> statusMapping) {
5756

5857
/**
5958
* Add specific status mappings to the existing set.
60-
* @param statusMapping a map of status code to {@link HttpStatus}
59+
* @param statusMapping a map of status code to {@code HttpStatus}
6160
*/
6261
public void addStatusMapping(Map<String, Integer> statusMapping) {
6362
Assert.notNull(statusMapping, "StatusMapping must not be null");

0 commit comments

Comments
 (0)