sal-dom-broker: use lambdas
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / java / org / opendaylight / controller / md / sal / dom / broker / impl / PingPongTransactionChain.java
index cbb5b0bd5a4f06435e9c414e06754ea04e0f9cb6..c7e8ced21a4139b6d870dc4de1bb606834f4ad5f 100644 (file)
@@ -173,7 +173,7 @@ public final class PingPongTransactionChain implements DOMTransactionChain {
 
         if (!LOCKED_UPDATER.compareAndSet(this, null, newTx)) {
             delegateTx.cancel();
-            throw new IllegalStateException(String.format("New transaction %s raced with transacion %s", newTx, lockedTx));
+            throw new IllegalStateException(String.format("New transaction %s raced with transaction %s", newTx, lockedTx));
         }
 
         return newTx;
@@ -436,7 +436,7 @@ public final class PingPongTransactionChain implements DOMTransactionChain {
     public DOMDataReadWriteTransaction newReadWriteTransaction() {
         final PingPongTransaction tx = allocateTransaction();
         final DOMDataReadWriteTransaction ret = new ForwardingDOMDataReadWriteTransaction() {
-            private boolean isOpen;
+            private boolean isOpen = true;
 
             @Override
             protected DOMDataReadWriteTransaction delegate() {