Merge pull request #45503 from quaff

* pr/45503:
  Polish PrometheusProperties

Closes gh-45503
This commit is contained in:
Stéphane Nicoll
2025-05-13 16:17:11 +02:00

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;
}