mirror of https://github.com/sbt/sbt.git
nowarn on TrapExit
This commit is contained in:
parent
c31f12d884
commit
e4f29d37a4
|
|
@ -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.*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue