From 47d6d6e53d1c40979528a510edcba0b18c4673c0 Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 13 Dec 2019 09:58:13 +0800 Subject: [PATCH] Change atomic property to val --- .../kotlin/net.mamoe.mirai/utils/LockFreeLinkedList.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/LockFreeLinkedList.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/LockFreeLinkedList.kt index d71df904c..fa26146ba 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/LockFreeLinkedList.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/LockFreeLinkedList.kt @@ -118,7 +118,7 @@ class LockFreeLinkedList : MutableList, RandomAccess { currentNoderef.value = value } - private var currentNoderef: AtomicRef> = atomic(head) // concurrent compatibility + private val currentNoderef: AtomicRef> = atomic(head) // concurrent compatibility /** * Check if