From eb7c0e4dc8d123842bee649700355d3661763950 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Wed, 21 Sep 2016 11:47:08 +0900 Subject: [PATCH] Remove unused Closes gh-6966 --- .../OnEnabledEndpointElementCondition.java | 9 --------- .../OnEnabledHealthIndicatorCondition.java | 11 ----------- .../OnEnabledInfoContributorCondition.java | 11 ----------- 3 files changed, 31 deletions(-) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEnabledEndpointElementCondition.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEnabledEndpointElementCondition.java index 0084e11c86..04196b84b7 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEnabledEndpointElementCondition.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEnabledEndpointElementCondition.java @@ -44,15 +44,6 @@ abstract class OnEnabledEndpointElementCondition extends SpringBootCondition { this.annotationType = annotationType; } - protected String getEndpointElementOutcomeMessage(String name, boolean match) { - return "The endpoint element " + name + " is " + (match ? "enabled" : "disabled"); - } - - protected String getDefaultEndpointElementOutcomeMessage(boolean match) { - return "All default endpoint elements are " + (match ? "enabled" : "disabled") - + " by default"; - } - @Override public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) { diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEnabledHealthIndicatorCondition.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEnabledHealthIndicatorCondition.java index 35bceaf1e4..a94f6e2318 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEnabledHealthIndicatorCondition.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEnabledHealthIndicatorCondition.java @@ -29,15 +29,4 @@ class OnEnabledHealthIndicatorCondition extends OnEnabledEndpointElementConditio super("management.health.", ConditionalOnEnabledHealthIndicator.class); } - @Override - protected String getEndpointElementOutcomeMessage(String name, boolean match) { - return "The health indicator " + name + " is " + (match ? "enabled" : "disabled"); - } - - @Override - protected String getDefaultEndpointElementOutcomeMessage(boolean match) { - return "All default health indicators are " + (match ? "enabled" : "disabled") - + " by default"; - } - } diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEnabledInfoContributorCondition.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEnabledInfoContributorCondition.java index b934121c4e..91c45b4011 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEnabledInfoContributorCondition.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEnabledInfoContributorCondition.java @@ -29,15 +29,4 @@ class OnEnabledInfoContributorCondition extends OnEnabledEndpointElementConditio super("management.info.", ConditionalOnEnabledInfoContributor.class); } - @Override - protected String getEndpointElementOutcomeMessage(String name, boolean match) { - return "The info contributor " + name + " is " + (match ? "enabled" : "disabled"); - } - - @Override - protected String getDefaultEndpointElementOutcomeMessage(boolean match) { - return "All default info contributors are " + (match ? "enabled" : "disabled") - + " by default"; - } - }