Bug 2265: Address comments from 12448 10/14510/1
authortpantelis <tpanteli@brocade.com>
Wed, 21 Jan 2015 22:44:19 +0000 (17:44 -0500)
committertpantelis <tpanteli@brocade.com>
Wed, 21 Jan 2015 22:44:19 +0000 (17:44 -0500)
commit332e1ef60cbe1b7da40afed0a04d7b86c10a6323
tree07cd97d2b52e4e9ef9bfd049270675267adacec4
parentfcf65d723ef53f8da2dd6347f41ce19016fc36e5
Bug 2265: Address comments from 12448

Address comments from https://git.opendaylight.org/gerrit/#/c/12448/:

- CanCommitTransactionReply: "you could have used a CONSTANT here
YES_SERIALIZED, NO_SERIALIZED. Or even completely eliminating the
serializedMessage field"

- MergeData: "We could have use SERIALIZABLE_CLASS.isInstance(message)
here and in lot of other places where we are checking the message
type with equals now."

Change-Id: I8248fb739b45a9ad4795b355f3b4ef9291e99791
Signed-off-by: tpantelis <tpanteli@brocade.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CanCommitTransactionReply.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/MergeData.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/WriteData.java