Skip to content

Commit 0115183

Browse files
committed
set test java to 25, remove deprecated usage
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent 046f7a4 commit 0115183

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class JvmMemoryMetricsTest {
3030
private final MemoryUsage memoryUsagePoolCollectionEdenSpace = Mockito.mock(MemoryUsage.class);
3131
private final MemoryUsage memoryUsagePoolCollectionOldGen = Mockito.mock(MemoryUsage.class);
3232

33+
@SuppressWarnings("deprecation")
3334
@BeforeEach
3435
public void setUp() {
3536
when(mockMemoryBean.getHeapMemoryUsage()).thenReturn(memoryUsageHeap);

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ private ThreadWithInvalidId(long id, Runnable runnable) {
174174
* Note that only Java versions < 21 call this to get the thread id. With Java 21 and newer it's
175175
* no longer possible to make an invalid thread id.
176176
*/
177+
@SuppressWarnings("deprecation")
177178
@Override
178179
public long getId() {
179180
return this.id;

0 commit comments

Comments
 (0)