Skip to content

Commit b3d8f19

Browse files
committed
fix
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent dfd3151 commit b3d8f19

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

prometheus-metrics-instrumentation-jvm/src/test/java/io/prometheus/metrics/instrumentation/jvm/JvmThreadsMetricsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ private static class ThreadWithInvalidId extends Thread {
165165

166166
private final long id;
167167

168-
public ThreadWithInvalidId(long id, Runnable runnable) {
168+
private ThreadWithInvalidId(long id, Runnable runnable) {
169169
super(runnable);
170170
setDaemon(true);
171171
this.id = id;
@@ -185,7 +185,7 @@ private static class TestRunnable implements Runnable {
185185

186186
private final CountDownLatch countDownLatch;
187187

188-
public TestRunnable(CountDownLatch countDownLatch) {
188+
private TestRunnable(CountDownLatch countDownLatch) {
189189
this.countDownLatch = countDownLatch;
190190
}
191191

prometheus-metrics-model/src/test/java/io/prometheus/metrics/model/registry/MultiCollectorNameFilterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class MultiCollectorNameFilterTest {
1818
private static class Registry extends PrometheusRegistry {
1919
private final AtomicBoolean collectCalled = new AtomicBoolean();
2020

21-
public Registry(List<String> prometheusNames) {
21+
private Registry(List<String> prometheusNames) {
2222
register(
2323
new MultiCollector() {
2424
@Override
@@ -45,7 +45,7 @@ public List<String> getPrometheusNames() {
4545
});
4646
}
4747

48-
public boolean collectCalled() {
48+
private boolean collectCalled() {
4949
return collectCalled.get();
5050
}
5151
}

0 commit comments

Comments
 (0)