From 45cd7dbd7d69b868b1eefb441aed8e283b90c4b9 Mon Sep 17 00:00:00 2001 From: "Kenneth J. Shackleton" Date: Thu, 14 Sep 2023 08:47:11 +0100 Subject: [PATCH] SonarCloud and use indexed accessor in Mutex.kt. Signed-off-by: Kenneth J. Shackleton --- selekt-java/src/main/kotlin/com/bloomberg/selekt/pools/Mutex.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selekt-java/src/main/kotlin/com/bloomberg/selekt/pools/Mutex.kt b/selekt-java/src/main/kotlin/com/bloomberg/selekt/pools/Mutex.kt index 290f8791d1..716674bf87 100644 --- a/selekt-java/src/main/kotlin/com/bloomberg/selekt/pools/Mutex.kt +++ b/selekt-java/src/main/kotlin/com/bloomberg/selekt/pools/Mutex.kt @@ -52,7 +52,7 @@ internal class Mutex { } fun unlock() { - isLockedUpdater.set(this, 0) + isLockedUpdater[this] = 0 LockSupport.unpark(waiters.peek()) }