Fix sal-distributed-datastore checkstyle 21/107621/3
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 30 Aug 2023 15:01:08 +0000 (17:01 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 9 Oct 2023 11:15:20 +0000 (13:15 +0200)
Upgraded checkstyle is flagging a few nested classes as potentially
final, fix that up.

Change-Id: I8f5370fb700a76f6f71ad186d78cbb50e595a8a2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 91143d29e61cd262543f0ec2d0b85461c2898b23)

opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DatastoreContextContextPropertiesUpdaterTest.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/utils/ActorUtilsTest.java

index a113856627e7ca0ddf70c6cc72ac1d747e678478..244df9c0bc0973d541e7cf0baf742d2b111df019 100644 (file)
@@ -88,8 +88,7 @@ public class DatastoreContextContextPropertiesUpdaterTest {
         return currProps.get(obj);
     }
 
-    private class DummyListenerImpl implements Listener {
-
+    private static final class DummyListenerImpl implements Listener {
         private DatastoreContextFactory contextFactory;
 
         @Override
index e40939b55ba4f304837f07167ac6e3bea69e87e4..dba5b8fd8a54844542d8a1676511c3fd7fa30bd5 100644 (file)
@@ -67,10 +67,10 @@ import scala.concurrent.Future;
 import scala.concurrent.duration.FiniteDuration;
 
 public class ActorUtilsTest extends AbstractActorTest {
-
     static final Logger LOG = LoggerFactory.getLogger(ActorUtilsTest.class);
 
-    private static class TestMessage {
+    private static final class TestMessage {
+
     }
 
     private static final class MockShardManager extends UntypedAbstractActor {