Skip to content

Commit 1325429

Browse files
quaffsnicoll
authored andcommitted
Polish PrometheusProperties
See gh-45503 Signed-off-by: Yanming Zhou <[email protected]>
1 parent 1dfa5c7 commit 1325429

File tree

1 file changed

+3
-3
lines changed
  • spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/prometheus

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public static class Pushgateway {
101101
/**
102102
* Enable publishing over a Prometheus Pushgateway.
103103
*/
104-
private Boolean enabled = false;
104+
private boolean enabled;
105105

106106
/**
107107
* Address (host:port) for the Pushgateway.
@@ -153,11 +153,11 @@ public static class Pushgateway {
153153
*/
154154
private ShutdownOperation shutdownOperation = ShutdownOperation.NONE;
155155

156-
public Boolean getEnabled() {
156+
public boolean isEnabled() {
157157
return this.enabled;
158158
}
159159

160-
public void setEnabled(Boolean enabled) {
160+
public void setEnabled(boolean enabled) {
161161
this.enabled = enabled;
162162
}
163163

0 commit comments

Comments
 (0)