From 4344005fb51935f6c38e9cc64c2ea978222629f9 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Wed, 5 Sep 2018 06:09:59 +0300 Subject: [PATCH] Deprecate synchronized function in common stdlib #KT-26595 --- libraries/stdlib/common/src/kotlin/KotlinH.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/stdlib/common/src/kotlin/KotlinH.kt b/libraries/stdlib/common/src/kotlin/KotlinH.kt index 2581a2bcaa2..a96b9fea046 100644 --- a/libraries/stdlib/common/src/kotlin/KotlinH.kt +++ b/libraries/stdlib/common/src/kotlin/KotlinH.kt @@ -80,6 +80,7 @@ public expect fun Float.Companion.fromBits(bits: Int): Float //@Deprecated("Use Volatile annotation from kotlin.jvm package", ReplaceWith("kotlin.jvm.Volatile"), level = DeprecationLevel.WARNING) //public typealias Volatile = kotlin.jvm.Volatile +@Deprecated("Synchronization on any object is not supported on every platform and will be removed from the common standard library soon.") public expect inline fun synchronized(lock: Any, block: () -> R): R