Use VarHandles.fullFence() instead of an 'updated' field 49/109449/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 28 Dec 2023 21:10:15 +0000 (22:10 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 28 Dec 2023 21:17:22 +0000 (22:17 +0100)
commit88192bd72decaef3fa28071ed68987e8a83f36b0
tree57d64a280d4d576144dd30162c642ad157f3b5ec
parent4b53508710b5b450e8331889636e1a8bdd6d1d78
Use VarHandles.fullFence() instead of an 'updated' field

Upgraded SpotBugs does not like an otherwise-unused field. Preempt
failures by using VarHandles.fullFence() instead.

Also modernize ActorUtils by using instanceof patterns and local
variable type inference.

Change-Id: Iec9b717eaf821657f3ced659e0c6e86f360b21c5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/ActorUtils.java