From fc3f98dae2ddf7c13d8520a9d47fabcc5c1c21bc Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Fri, 29 Jan 2016 21:38:25 +0300 Subject: [PATCH] Deprecate currentThread property --- libraries/stdlib/src/kotlin/concurrent/Thread.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libraries/stdlib/src/kotlin/concurrent/Thread.kt b/libraries/stdlib/src/kotlin/concurrent/Thread.kt index 931c5615aa1..2f16e3ead23 100644 --- a/libraries/stdlib/src/kotlin/concurrent/Thread.kt +++ b/libraries/stdlib/src/kotlin/concurrent/Thread.kt @@ -2,13 +2,10 @@ @file:JvmName("ThreadsKt") package kotlin.concurrent -import java.util.concurrent.Executor -import java.util.concurrent.ExecutorService -import java.util.concurrent.Future - /** * Returns the current thread. */ +@Deprecated("Use Thread.currentThread()", ReplaceWith("Thread.currentThread()"), level = DeprecationLevel.ERROR) public val currentThread: Thread get() = Thread.currentThread()