Skip to content

Commit cdbea47

Browse files
WojciechMazurtgodzik
authored andcommitted
Don't warn for deprecated Thread.getId() calls in ChromeTrace (scala#21831)
[Cherry-picked f7f51ed]
1 parent c39d519 commit cdbea47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: compiler/src/dotty/tools/dotc/profile/ChromeTrace.scala

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ final class ChromeTrace(f: Path) extends Closeable {
4545
private val traceWriter = FileUtils.newAsyncBufferedWriter(f)
4646
private val context = mutable.Stack[JsonContext](TopContext)
4747
private val tidCache = new ThreadLocal[String]() {
48+
@annotation.nowarn("cat=deprecation")
4849
override def initialValue(): String = "%05d".format(Thread.currentThread().getId())
4950
}
5051
objStart()

0 commit comments

Comments
 (0)