Skip to content

Commit 267cbbc

Browse files
committed
Rename method
See spring-projectsgh-30381
1 parent 855bcf7 commit 267cbbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/OnMetricsExportEnabledCondition.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeM
4242
AnnotationAttributes annotationAttributes = AnnotationAttributes
4343
.fromMap(metadata.getAnnotationAttributes(ConditionalOnEnabledMetricsExport.class.getName()));
4444
String endpointName = annotationAttributes.getString("value");
45-
ConditionOutcome outcome = getEndpointOutcome(context, endpointName);
45+
ConditionOutcome outcome = getProductOutcome(context, endpointName);
4646
if (outcome != null) {
4747
return outcome;
4848
}
4949
return getDefaultOutcome(context);
5050
}
5151

52-
private ConditionOutcome getEndpointOutcome(ConditionContext context, String productName) {
52+
private ConditionOutcome getProductOutcome(ConditionContext context, String productName) {
5353
Environment environment = context.getEnvironment();
5454
String enabledProperty = PROPERTY_TEMPLATE.formatted(productName);
5555
if (environment.containsProperty(enabledProperty)) {

0 commit comments

Comments
 (0)