Skip to content

Commit ccef1a8

Browse files
committed
extract snapshot escaper
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent 28b2fa0 commit ccef1a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

prometheus-metrics-model/src/main/java/io/prometheus/metrics/model/snapshots/SnapshotEscaper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public static MetricSnapshot escapeMetricSnapshot(MetricSnapshot v, EscapingSche
106106
outDataPoints.add(outDataPointSnapshot);
107107
}
108108

109-
return SnapshotEscaper.createEscapedMetricSnapshot(
109+
return createEscapedMetricSnapshot(
110110
v, escapeName(v.getMetadata().getName(), scheme), outDataPoints);
111111
}
112112

prometheus-metrics-model/src/test/java/io/prometheus/metrics/model/snapshots/MetricSnapshotsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class MetricSnapshotsTest {
1111
@Test
1212
public void testEmpty() {
1313
MetricSnapshots snapshots = MetricSnapshots.builder().build();
14-
assertThat(snapshots.stream().findAny().isPresent()).isFalse();
14+
assertThat(snapshots.stream().findAny()).isNotPresent();
1515
}
1616

1717
@Test

0 commit comments

Comments
 (0)