Make NOOP_CALLBACK internal constant 08/34608/5
authorRobert Varga <rovarga@cisco.com>
Sat, 13 Feb 2016 22:01:14 +0000 (23:01 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 15 Feb 2016 14:08:08 +0000 (14:08 +0000)
There are no outside users, make this a proper final constant and hide
it.

Change-Id: I06638758787b3fd0994b5d51fb4f2b2e5718aa57
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/base/messages/ApplySnapshot.java

index 3c43d80..d449822 100644 (file)
@@ -16,6 +16,18 @@ import org.opendaylight.controller.cluster.raft.Snapshot;
  * Internal message, issued by follower to its actor
  */
 public class ApplySnapshot {
+    private static final Callback NOOP_CALLBACK = new Callback() {
+        @Override
+        public void onSuccess() {
+            // No-op
+        }
+
+        @Override
+        public void onFailure() {
+            // No-op
+        }
+    };
+
     private final Snapshot snapshot;
     private final Callback callback;
 
@@ -43,14 +55,4 @@ public class ApplySnapshot {
 
         void onFailure();
     }
-
-    public static Callback NOOP_CALLBACK = new Callback() {
-        @Override
-        public void onSuccess() {
-        }
-
-        @Override
-        public void onFailure() {
-        }
-    };
 }