Skip to content

Commit b054a01

Browse files
committed
Merge pull request #45503 from quaff
* pr/45503: Polish PrometheusProperties Closes gh-45503
2 parents 1dfa5c7 + 1325429 commit b054a01

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

Lines changed: 3 additions & 3 deletions
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)