From e4f29d37a43070a88d20d31e0641fcfa6582e2c7 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Fri, 17 Sep 2021 05:14:11 -0400 Subject: [PATCH] nowarn on TrapExit --- run/src/main/scala/sbt/TrapExit.scala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run/src/main/scala/sbt/TrapExit.scala b/run/src/main/scala/sbt/TrapExit.scala index 5c80e1be0..2e53ed2c4 100644 --- a/run/src/main/scala/sbt/TrapExit.scala +++ b/run/src/main/scala/sbt/TrapExit.scala @@ -7,6 +7,7 @@ package sbt +import scala.annotation.nowarn import scala.reflect.Manifest import scala.collection.concurrent.TrieMap import java.lang.ref.WeakReference @@ -32,6 +33,7 @@ import TrapExit._ * do not terminate, or if concurrent AWT applications are run. * This category of code should only be called by forking a new JVM. */ +@nowarn object TrapExit { /** @@ -144,6 +146,7 @@ object TrapExit { * It also allows disposing AWT windows if the application created any. * Only one AWT application is supported at a time, however. */ +@nowarn private final class TrapExit(delegateManager: SecurityManager) extends SecurityManager { /** Tracks the number of running applications in order to short-cut SecurityManager checks when no applications are active.*/