Invert equals() invocation for expired TX_COMMIT_TIMEOUT_CHECK_MESSAGE 00/36900/3
authorRobert Varga <rovarga@cisco.com>
Wed, 30 Mar 2016 15:09:16 +0000 (17:09 +0200)
committerRobert Varga <rovarga@cisco.com>
Thu, 31 Mar 2016 08:22:44 +0000 (10:22 +0200)
commite836005e1d0674e4d260b33d91511cd97d36928c
tree5ec553692c986de7fae2760504b45012ea9959ed
parent6f55265c68cbd7e231b48cfb1e6a2313d6680285
Invert equals() invocation for expired TX_COMMIT_TIMEOUT_CHECK_MESSAGE

TX_COMMIT_TIMEOUT_CHECK_MESSAGE is a constant, hence calling equals on it
with the message parameter should be faster than the over way around.

Change-Id: I4d8b8bfa644e7802d90059369266e2227e5c1ca3
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/Shard.java