Polish PrometheusProperties

See gh-45503

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
Yanming Zhou
2025-05-12 15:24:18 +08:00
committed by Stéphane Nicoll
parent 1dfa5c721c
commit 1325429e5e

View File

@@ -101,7 +101,7 @@ public class PrometheusProperties {
/**
* Enable publishing over a Prometheus Pushgateway.
*/
private Boolean enabled = false;
private boolean enabled;
/**
* Address (host:port) for the Pushgateway.
@@ -153,11 +153,11 @@ public class PrometheusProperties {
*/
private ShutdownOperation shutdownOperation = ShutdownOperation.NONE;
public Boolean getEnabled() {
public boolean isEnabled() {
return this.enabled;
}
public void setEnabled(Boolean enabled) {
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}