Fix checkState() argument 94/101494/3
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 8 Jun 2022 09:27:29 +0000 (11:27 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 8 Jun 2022 11:24:49 +0000 (11:24 +0000)
Use %s instead of {}.

Change-Id: I008a1531dc53420247765a07f2b2cd798ef2d3a5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
dom/mdsal-dom-spi/src/main/java/org/opendaylight/mdsal/dom/spi/store/AbstractSnapshotBackedTransactionChain.java

index 85012c39b2dc727082302cd566b1c8836040a1f5..6424658b9144e5a6559b6927ea883051dec96202 100644 (file)
@@ -216,7 +216,7 @@ public abstract class AbstractSnapshotBackedTransactionChain<T>
         final State localState = state;
 
         do {
-            checkState(!CLOSED.equals(localState), "Transaction chain {} has been closed", this);
+            checkState(!CLOSED.equals(localState), "Transaction chain %s has been closed", this);
 
             if (FAILED.equals(localState)) {
                 LOG.debug("Ignoring user close in failed state");
@@ -250,8 +250,8 @@ public abstract class AbstractSnapshotBackedTransactionChain<T>
         }
 
         if (!STATE_UPDATER.compareAndSet(this, localState, idleState)) {
-            LOG.debug("Transaction chain {} has already transitioned from "
-                    + "{} to {}, not making it idle", this, localState, state);
+            LOG.debug("Transaction chain {} has already transitioned from {} to {}, not making it idle", this,
+                localState, state);
         }
     }