RFR: 8326618 : Replace usage of deprecated method getId() in Thread

John Hendrikx jhendrikx at openjdk.org
Tue Feb 27 18:26:54 UTC 2024


On Tue, 27 Feb 2024 17:58:13 GMT, Anirvan Sarkar <asarkar at openjdk.org> wrote:

> Replace Thread.currentThread().getId() with Thread.currentThread().threadId()

Looks okay.  `threadId` was added in JDK 19, but since we're on 21 now that should be fine.

-------------

Marked as reviewed by jhendrikx (Committer).

PR Review: https://git.openjdk.org/jfx/pull/1383#pullrequestreview-1904467291


More information about the openjfx-dev mailing list