Skip to content

Commit f7f51ed

Browse files
Don't warn for deprecated Thread.getId() calls in ChromeTrace (#21831)
1 parent ecc332f commit f7f51ed

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)