From 6c689cd28b4bfe2a316de9e05350064cb2a056bf Mon Sep 17 00:00:00 2001 From: ragnar Date: Sat, 20 Jul 2024 14:24:18 +0200 Subject: [PATCH] =?UTF-8?q?add=20types=20so=20publish=20local=20does=20not?= =?UTF-8?q?=20warn=20=E2=80=A6=20=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fullmv/NonblockingSkipListVersionHistory.scala | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Modules/Reactives/jvm/src/main/scala/reactives/fullmv/NonblockingSkipListVersionHistory.scala b/Modules/Reactives/jvm/src/main/scala/reactives/fullmv/NonblockingSkipListVersionHistory.scala index 42ab040c1..c4f6477a2 100644 --- a/Modules/Reactives/jvm/src/main/scala/reactives/fullmv/NonblockingSkipListVersionHistory.scala +++ b/Modules/Reactives/jvm/src/main/scala/reactives/fullmv/NonblockingSkipListVersionHistory.scala @@ -8,7 +8,6 @@ import java.util.concurrent.ForkJoinPool.ManagedBlocker import java.util.concurrent.atomic.{AtomicIntegerFieldUpdater, AtomicReference, AtomicReferenceFieldUpdater} import java.util.concurrent.locks.LockSupport import scala.annotation.{elidable, nowarn, tailrec} - import scala.language.unsafeNulls sealed trait MaybeWritten[+V] @@ -1237,11 +1236,13 @@ object NonblockingSkipListVersionHistory { val DEBUG = false val TRACE_VALUES = false - val pendingUpdate = AtomicIntegerFieldUpdater.newUpdater(classOf[LinkWithCounters[Any]], "pending") - val changedUpdate = AtomicIntegerFieldUpdater.newUpdater(classOf[LinkWithCounters[Any]], "changed") - val stableSleeperUpdate = + val pendingUpdate: AtomicIntegerFieldUpdater[LinkWithCounters[Any]] = + AtomicIntegerFieldUpdater.newUpdater(classOf[LinkWithCounters[Any]], "pending") + val changedUpdate: AtomicIntegerFieldUpdater[LinkWithCounters[Any]] = + AtomicIntegerFieldUpdater.newUpdater(classOf[LinkWithCounters[Any]], "changed") + val stableSleeperUpdate: AtomicReferenceFieldUpdater[LinkWithCounters[Any], List[Thread]] = AtomicReferenceFieldUpdater.newUpdater(classOf[LinkWithCounters[Any]], classOf[List[Thread]], "stableSleepers") - val finalSleeperUpdate = + val finalSleeperUpdate: AtomicReferenceFieldUpdater[LinkWithCounters[Any], List[Thread]] = AtomicReferenceFieldUpdater.newUpdater(classOf[LinkWithCounters[Any]], classOf[List[Thread]], "finalSleepers") /** @param attemptPredecessor intended predecessor transaction