Skip to content

Commit 0d51f20

Browse files
committed
Stop using deprecated Thread.getId
Use Thread.threadId instead.
1 parent 3c99122 commit 0d51f20

File tree

1 file changed

+2
-2
lines changed
  • ui/org.eclipse.pde.ui.tests/src/org/eclipse/pde/ui/tests/runtime

1 file changed

+2
-2
lines changed

ui/org.eclipse.pde.ui.tests/src/org/eclipse/pde/ui/tests/runtime/TestUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2008, 2021 IBM Corporation and others.
2+
* Copyright (c) 2008, 2024 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -201,7 +201,7 @@ private static String dumpRunningOrWaitingJobs(List<Job> jobs) {
201201
Thread thread = job.getThread();
202202
if (thread != null) {
203203
ThreadInfo[] threadInfos = ManagementFactory.getThreadMXBean()
204-
.getThreadInfo(new long[] { thread.getId() }, true, true);
204+
.getThreadInfo(new long[] { thread.threadId() }, true, true);
205205
if (threadInfos[0] != null) {
206206
sb.append("\nthread info: ").append(threadInfos[0]);
207207
}

0 commit comments

Comments
 (0)