mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
IDEA-255162 [duplicates] better fix for concurrent settings access
GitOrigin-RevId: 0156d787f5a9701e5a7732ed26a2f219115b33c5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2a1969b50a
commit
43da896178
@@ -10,7 +10,6 @@ import com.intellij.util.xmlb.annotations.Transient
|
||||
import org.jetbrains.annotations.ApiStatus
|
||||
import java.nio.charset.Charset
|
||||
import java.util.*
|
||||
import java.util.concurrent.ConcurrentHashMap
|
||||
import java.util.concurrent.atomic.AtomicLongFieldUpdater
|
||||
import kotlin.collections.ArrayList
|
||||
import kotlin.collections.LinkedHashMap
|
||||
@@ -99,9 +98,6 @@ abstract class BaseState : SerializationFilter, ModificationTracker {
|
||||
|
||||
protected fun <K : Any, V: Any> linkedMap(): StoredPropertyBase<MutableMap<K, V>> = addProperty(factory.map<K, V>(LinkedHashMap()))
|
||||
|
||||
@Deprecated(message = "No one should use concurrent collections here")
|
||||
protected fun <K : Any, V: Any> concurrentMap(): StoredPropertyBase<MutableMap<K, V>> = addProperty(factory.map<K, V>(ConcurrentHashMap()))
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Use map", replaceWith = ReplaceWith("map()"))
|
||||
protected fun <K : Any, V: Any> map(value: MutableMap<K, V>): StoredPropertyBase<MutableMap<K, V>> = addProperty(factory.map(value))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user