Enable modernizer in sal-distributed-datastore 66/93866/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 17 Nov 2020 15:39:31 +0000 (16:39 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 17 Nov 2020 16:49:20 +0000 (17:49 +0100)
We are down to a single offender, suppress it and enable moderinizer
enforcement.

Change-Id: I9daf9f54276c48aac09e999327add7ade92dfc95
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 1b8b80be1a8c7dbc3de11d8e4e283a755fa9a14f)

opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/OSGiDistributedDataStore.java

index f4d88a9b6d317443681c4a91addf49b83ac7722a..cfcffbfd489fe0a8d91ed2b197736a2cd6e0942b 100644 (file)
@@ -16,6 +16,7 @@ import java.util.Dictionary;
 import java.util.Hashtable;
 import java.util.Map;
 import org.checkerframework.checker.lock.qual.GuardedBy;
+import org.gaul.modernizer_maven_annotations.SuppressModernizer;
 import org.opendaylight.controller.cluster.ActorSystemProvider;
 import org.opendaylight.controller.cluster.datastore.config.Configuration;
 import org.opendaylight.controller.cluster.datastore.config.ConfigurationImpl;
@@ -85,6 +86,7 @@ public final class OSGiDistributedDataStore {
         }
 
         @Override
+        @SuppressModernizer
         public void onSuccess(final Object result) {
             LOG.debug("Distributed Datastore type {} reached initial settle", datastoreType);