Skip to content

Commit e205912

Browse files
authored
Merge pull request scala/scala#10245 from som-snytt/tweak/jdk19
Thread.getId is deprecated in JVM19
2 parents 5d0d532 + c33c9e5 commit e205912

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/src/scala/concurrent/impl/ExecutionContextImpl.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ private[concurrent] object ExecutionContextImpl {
3535

3636
private final val blockerPermits = new Semaphore(maxBlockers)
3737

38+
@annotation.nowarn("cat=deprecation")
3839
def wire[T <: Thread](thread: T): T = {
3940
thread.setDaemon(daemonic)
4041
thread.setUncaughtExceptionHandler(uncaught)

0 commit comments

Comments
 (0)