diff options
Diffstat (limited to 'src/library/scala/concurrent/Process.scala')
-rw-r--r-- | src/library/scala/concurrent/Process.scala | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/library/scala/concurrent/Process.scala b/src/library/scala/concurrent/Process.scala index 39ce04484e..b054b23ecb 100644 --- a/src/library/scala/concurrent/Process.scala +++ b/src/library/scala/concurrent/Process.scala @@ -12,8 +12,6 @@ package scala.concurrent -import compat.Platform.UnsupportedOperationException - /** This object ... * * @author Erik Stenman @@ -43,8 +41,8 @@ object Process { * @throws scala.compat.Platform.UnsupportedOperationException */ def self: Process = - if (Thread.currentThread().isInstanceOf[Process]) - Thread.currentThread().asInstanceOf[Process] + if (currentThread.isInstanceOf[Process]) + currentThread.asInstanceOf[Process] else throw new UnsupportedOperationException("Self called outside a process") |