Skip to content

Commit

Permalink
Polish "Use constants for HTTP headers"
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Jun 21, 2019
1 parent a57df0f commit 403d868
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;

/**
* {@link EnableAutoConfiguration Auto-configuration} for web {@link Endpoint @Endpoint}
Expand All @@ -68,8 +67,7 @@
@EnableConfigurationProperties(WebEndpointProperties.class)
public class WebEndpointAutoConfiguration {

private static final List<String> MEDIA_TYPES = Arrays.asList(ActuatorMediaType.V2_JSON,
MediaType.APPLICATION_JSON_VALUE);
private static final List<String> MEDIA_TYPES = Arrays.asList(ActuatorMediaType.V2_JSON, "application/json");

private final ApplicationContext applicationContext;

Expand Down

0 comments on commit 403d868

Please sign in to comment.