X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-manager%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fmanager%2Fimpl%2FTransactionStatus.java;h=af333c3893656da6f70b23f5258127950f691aa3;hp=f86d6b1d818715481f601a4e366240aae2e5d4a5;hb=6227570f6482136b72a26675d43c8bb88279503e;hpb=660c3e22ca97bc613ea6f6288503620bba6fb233 diff --git a/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/TransactionStatus.java b/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/TransactionStatus.java index f86d6b1d81..af333c3893 100644 --- a/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/TransactionStatus.java +++ b/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/TransactionStatus.java @@ -48,32 +48,32 @@ public class TransactionStatus { } public synchronized void checkNotCommitStarted() { - if (secondPhaseCommitStarted == true) { + if (secondPhaseCommitStarted) { throw new IllegalStateException("Commit was triggered"); } } public synchronized void checkCommitStarted() { - if (secondPhaseCommitStarted == false) { + if (!secondPhaseCommitStarted) { throw new IllegalStateException("Commit was not triggered"); } } public synchronized void checkNotAborted() { - if (aborted == true) { + if (aborted) { throw new IllegalStateException("Configuration was aborted"); } } public synchronized void checkNotCommitted() { - if (committed == true) { + if (committed) { throw new IllegalStateException( "Cannot use this method after second phase commit"); } } public synchronized void checkCommitted() { - if (committed == false) { + if (!committed) { throw new IllegalStateException( "Cannot use this method before second phase commit"); }