ShardSnapshotState is final 32/103432/3
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 26 Nov 2022 21:59:08 +0000 (22:59 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 28 Nov 2022 19:18:48 +0000 (20:18 +0100)
This is a well-known contract, it should be final.

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

index a294584227e92765fa84e3ebfe4a6cb6bc9aa5d3..061749db81ab3b854520824769b2964f2a3ad25a 100644 (file)
@@ -23,9 +23,7 @@ import org.opendaylight.controller.cluster.raft.persisted.Snapshot;
  *
  * @author Thomas Pantelis
  */
-public class ShardSnapshotState implements Snapshot.State {
-    private static final long serialVersionUID = 1L;
-
+public final class ShardSnapshotState implements Snapshot.State {
     private static final class Proxy implements Externalizable {
         private static final long serialVersionUID = 1L;
 
@@ -57,6 +55,8 @@ public class ShardSnapshotState implements Snapshot.State {
         }
     }
 
+    private static final long serialVersionUID = 1L;
+
     @SuppressFBWarnings(value = "SE_BAD_FIELD", justification = "This field is not Serializable but this class "
             + "implements writeReplace to delegate serialization to a Proxy class and thus instances of this class "
             + "aren't serialized. FindBugs does not recognize this.")