From: Robert Varga Date: Sat, 26 Nov 2022 21:59:08 +0000 (+0100) Subject: ShardSnapshotState is final X-Git-Tag: v7.0.0~34 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=eaf28fe5abf6ec76d8b3c179fe330a0b264b1ee8 ShardSnapshotState is final This is a well-known contract, it should be final. Change-Id: Ib1748ed05969a56266a62477dc794d6df43b2df1 Signed-off-by: Robert Varga --- diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/persisted/ShardSnapshotState.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/persisted/ShardSnapshotState.java index a294584227..061749db81 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/persisted/ShardSnapshotState.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/persisted/ShardSnapshotState.java @@ -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.")