Skip to content

Commit 7d4ea6f

Browse files
Jörg Kubitzjukzi
authored andcommitted
fix warning about Thread.getID()
'The method getId() from the type Thread is deprecated since version 19'
1 parent 16ebe75 commit 7d4ea6f

File tree

1 file changed

+2
-1
lines changed
  • debug/org.eclipse.debug.ui.launchview.tests/src/org/eclipse/debug/ui/launchview/tests

1 file changed

+2
-1
lines changed

debug/org.eclipse.debug.ui.launchview.tests/src/org/eclipse/debug/ui/launchview/tests/TestUtil.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ private static String dumpRunningOrWaitingJobs(List<Job> jobs) {
264264
sb.append(job.getClass().getName());
265265
Thread thread = job.getThread();
266266
if (thread != null) {
267-
ThreadInfo[] threadInfos = ManagementFactory.getThreadMXBean().getThreadInfo(new long[] { thread.getId() }, true, true);
267+
ThreadInfo[] threadInfos = ManagementFactory.getThreadMXBean().getThreadInfo(new long[] {
268+
thread.threadId() }, true, true);
268269
if (threadInfos[0] != null) {
269270
sb.append("\nthread info: ").append(threadInfos[0]);
270271
}

0 commit comments

Comments
 (0)