This is a property which is under control of the baseline class,
do not allow it to be modified.
Change-Id: Icab5e415954b27842f5af65ecde75202a0c53589
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
private short version = DataStoreVersions.CURRENT_VERSION;
public VersionedExternalizableMessage() {
-
+ // Required for externalizable
}
public VersionedExternalizableMessage(final short version) {
this.version = version <= DataStoreVersions.CURRENT_VERSION ? version : DataStoreVersions.CURRENT_VERSION;
}
- public short getVersion() {
+ public final short getVersion() {
return version;
}