From caa0c12038990107723cae04f23dab5734278ce8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Kubitz?= Date: Tue, 4 Jun 2024 12:20:28 +0200 Subject: [PATCH] fix warning about Thread.getID() 'The method getId() from the type Thread is deprecated since version 19' --- .../src/org/eclipse/debug/ui/launchview/tests/TestUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debug/org.eclipse.debug.ui.launchview.tests/src/org/eclipse/debug/ui/launchview/tests/TestUtil.java b/debug/org.eclipse.debug.ui.launchview.tests/src/org/eclipse/debug/ui/launchview/tests/TestUtil.java index afeeafa87a1..708c8e8a1e8 100644 --- a/debug/org.eclipse.debug.ui.launchview.tests/src/org/eclipse/debug/ui/launchview/tests/TestUtil.java +++ b/debug/org.eclipse.debug.ui.launchview.tests/src/org/eclipse/debug/ui/launchview/tests/TestUtil.java @@ -264,7 +264,8 @@ private static String dumpRunningOrWaitingJobs(List jobs) { sb.append(job.getClass().getName()); Thread thread = job.getThread(); if (thread != null) { - ThreadInfo[] threadInfos = ManagementFactory.getThreadMXBean().getThreadInfo(new long[] { thread.getId() }, true, true); + ThreadInfo[] threadInfos = ManagementFactory.getThreadMXBean().getThreadInfo(new long[] { + thread.threadId() }, true, true); if (threadInfos[0] != null) { sb.append("\nthread info: ").append(threadInfos[0]); }