X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fmessages%2FBatchedModificationsReply.java;h=0cca8d03ffa7f4cc5f9d78fbed7698c6fab23446;hb=HEAD;hp=3f179cf0019ac825781032588d678499e8b27061;hpb=909831d806ef3b35358206559523f09716214e58;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/BatchedModificationsReply.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/BatchedModificationsReply.java index 3f179cf001..0cca8d03ff 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/BatchedModificationsReply.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/BatchedModificationsReply.java @@ -16,7 +16,9 @@ import java.io.ObjectOutput; * * @author Thomas Pantelis */ -public class BatchedModificationsReply extends VersionedExternalizableMessage { +@Deprecated(since = "9.0.0", forRemoval = true) +public final class BatchedModificationsReply extends VersionedExternalizableMessage { + @java.io.Serial private static final long serialVersionUID = 1L; private int numBatched; @@ -24,7 +26,7 @@ public class BatchedModificationsReply extends VersionedExternalizableMessage { public BatchedModificationsReply() { } - public BatchedModificationsReply(int numBatched) { + public BatchedModificationsReply(final int numBatched) { this.numBatched = numBatched; } @@ -33,27 +35,19 @@ public class BatchedModificationsReply extends VersionedExternalizableMessage { } @Override - public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { + public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); numBatched = in.readInt(); } @Override - public void writeExternal(ObjectOutput out) throws IOException { + public void writeExternal(final ObjectOutput out) throws IOException { super.writeExternal(out); out.writeInt(numBatched); } - @Override - protected Object newLegacySerializedInstance() { - // no legacy serialized type for this class; return self - return this; - } - @Override public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append("BatchedModificationsReply [numBatched=").append(numBatched).append("]"); - return builder.toString(); + return "BatchedModificationsReply [numBatched=" + numBatched + "]"; } }