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=85a4118a6fe51d8571a1e7bb398d954e4ceddd33;hp=3d4a168450bbf4ef07b23a1071e7a6678fba3c13;hpb=43f5c8e686ccb3a5b196d3d64721cb4ec86ee3d1;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; } }