Skip to content

Commit df0a831

Browse files
committed
Fixup warning due to deprecated Thread.getId (in Examples only)
1 parent 1a57e2d commit df0a831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/SnippetExplorer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ public void stopSnippets() {
10421042
if (!launchedSnippets.isEmpty()) {
10431043
System.err.println("Some Snippets are still running:");
10441044
for (Thread t : launchedSnippets) {
1045-
System.err.println(" " + t.getName() + " (ThreadId: " + t.getId() + ")");
1045+
System.err.println(" " + t.getName() + " (ThreadId: " + t.threadId() + ")");
10461046
final Display d = Display.findDisplay(t);
10471047
if (d != null && !d.isDisposed()) {
10481048
d.syncExec(d::dispose);

0 commit comments

Comments
 (0)