Skip to content

Commit bb31b0d

Browse files
committed
fix warnings
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent 6ffa7d4 commit bb31b0d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

prometheus-metrics-core/src/main/java/io/prometheus/metrics/core/metrics/StatefulMetric.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package io.prometheus.metrics.core.metrics;
22

3-
import static java.lang.Boolean.FALSE;
4-
import static java.lang.Boolean.TRUE;
5-
63
import io.prometheus.metrics.config.MetricsProperties;
74
import io.prometheus.metrics.config.PrometheusProperties;
85
import io.prometheus.metrics.core.datapoints.DataPoint;
@@ -204,13 +201,13 @@ protected Builder(List<String> illegalLabelNames, PrometheusProperties config) {
204201

205202
/** Allow Exemplars for this metric. */
206203
public B withExemplars() {
207-
this.exemplarsEnabled = TRUE;
204+
this.exemplarsEnabled = true;
208205
return self();
209206
}
210207

211208
/** Turn off Exemplars for this metric. */
212209
public B withoutExemplars() {
213-
this.exemplarsEnabled = FALSE;
210+
this.exemplarsEnabled = false;
214211
return self();
215212
}
216213

0 commit comments

Comments
 (0)