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%2FCommitTransactionReply.java;h=47adea5ea0305678de89c8b11c4c87a6ea91bedc;hb=e2d9f9c57e124d46e117f17c44b77c89222fdb99;hp=3d4a168450bbf4ef07b23a1071e7a6678fba3c13;hpb=54caaff453fc8da7f8f927323e6b97bed2f33d25;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CommitTransactionReply.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CommitTransactionReply.java index 3d4a168450..47adea5ea0 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CommitTransactionReply.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CommitTransactionReply.java @@ -14,8 +14,13 @@ public class CommitTransactionReply implements SerializableMessage { public static final Class SERIALIZABLE_CLASS = ThreePhaseCommitCohortMessages.CommitTransactionReply.class; + private static final Object SERIALIZED_INSTANCE = + ThreePhaseCommitCohortMessages.CommitTransactionReply.newBuilder().build(); + + public static final CommitTransactionReply INSTANCE = new CommitTransactionReply(); + @Override public Object toSerializable() { - return ThreePhaseCommitCohortMessages.CommitTransactionReply.newBuilder().build(); + return SERIALIZED_INSTANCE; } }