KT-55610 Deprecate k.j.Volatile annotation in Common and JS

Use k.c.Volatile in common AbstractMap instead
This commit is contained in:
Ilya Gorbunov
2023-04-05 14:35:06 +02:00
committed by Space Team
parent b8da3e69ce
commit 912b65060e
5 changed files with 10 additions and 4 deletions
@@ -99,7 +99,7 @@ public abstract class AbstractMap<K, out V> protected constructor() : Map<K, V>
return _keys!!
}
@kotlin.jvm.Volatile
@kotlin.concurrent.Volatile
private var _keys: Set<K>? = null
@@ -135,7 +135,7 @@ public abstract class AbstractMap<K, out V> protected constructor() : Map<K, V>
return _values!!
}
@kotlin.jvm.Volatile
@kotlin.concurrent.Volatile
private var _values: Collection<V>? = null
private fun implFindEntry(key: K): Map.Entry<K, V>? = entries.firstOrNull { it.key == key }