This is a well-known contract, it should be final.
Change-Id: Ib1748ed05969a56266a62477dc794d6df43b2df1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
*
* @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;
}
}
+ 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.")