src/Pure/General/exn.scala
changeset 61558 68b86028e02a
parent 59698 d4ce901f20c5
     1.1 --- a/src/Pure/General/exn.scala	Tue Nov 03 14:03:44 2015 +0100
     1.2 +++ b/src/Pure/General/exn.scala	Tue Nov 03 16:35:00 2015 +0100
     1.3 @@ -58,7 +58,7 @@
     1.4      def apply(): Throwable = new InterruptedException
     1.5      def unapply(exn: Throwable): Boolean = is_interrupt(exn)
     1.6  
     1.7 -    def expose() { if (Thread.interrupted()) throw apply() }
     1.8 +    def expose() { if (Thread.interrupted) throw apply() }
     1.9      def impose() { Thread.currentThread.interrupt }
    1.10  
    1.11      def postpone[A](body: => A): Option[A] =
    1.12 @@ -104,4 +104,3 @@
    1.13    def message(exn: Throwable): String =
    1.14      user_message(exn) getOrElse (if (is_interrupt(exn)) "Interrupt" else exn.toString)
    1.15  }
    1.16 -