From: Robert Varga Date: Fri, 12 Sep 2014 21:45:02 +0000 (+0200) Subject: BUG-650: clarify TransactionFactory close state handling X-Git-Tag: release/helium~85^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=05910db0c56c6469e956400ceef8658b7d21ecf6 BUG-650: clarify TransactionFactory close state handling getAndSet() translates to a get() + compareAndSet(). We already know the expected value, so we can skip the first bit. The nice thing is that CAS will readily give us a boolean, so the code becomes a bit more clear, too. Change-Id: Id77dcefb7ba85512fcebbcae7f43f08cd8094fbc Signed-off-by: Robert Varga --- diff --git a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/broker/impl/AbstractDOMForwardedTransactionFactory.java b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/broker/impl/AbstractDOMForwardedTransactionFactory.java index 6838e39093..8ef60a43d4 100644 --- a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/broker/impl/AbstractDOMForwardedTransactionFactory.java +++ b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/broker/impl/AbstractDOMForwardedTransactionFactory.java @@ -212,8 +212,8 @@ abstract class AbstractDOMForwardedTransactionFactory