Do not compile SynchronizedLazyImpl for platforms other than JVM

This commit is contained in:
Ilya Gorbunov
2017-12-25 07:45:42 +03:00
parent b6595d661d
commit d2eb8b4a3f
+1
View File
@@ -107,6 +107,7 @@ public enum class LazyThreadSafetyMode {
private object UNINITIALIZED_VALUE
@JvmVersion
private class SynchronizedLazyImpl<out T>(initializer: () -> T, lock: Any? = null) : Lazy<T>, Serializable {
private var initializer: (() -> T)? = initializer
@Volatile private var _value: Any? = UNINITIALIZED_VALUE