Fix remaining CS warnings in sal-distributed-datastore
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / databroker / actors / dds / ClientLocalHistory.java
index 8f2ee88563641b81c20137ba7acef23c8f909e9c..807cf98cb73b3dcf5e4841eaf0f4d5b171ac025f 100644 (file)
@@ -18,6 +18,7 @@ import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier
  * Client-side view of a local history. This class tracks all state related to a particular history and routes
  * frontend requests towards the backend.
  *
+ * <p>
  * This interface is used by the world outside of the actor system and in the actor system it is manifested via
  * its client actor. That requires some state transfer with {@link DistributedDataStoreClientBehavior}. In order to
  * reduce request latency, all messages are carbon-copied (and enqueued first) to the client actor.
@@ -43,8 +44,8 @@ public final class ClientLocalHistory extends AbstractClientHistory implements A
         Preconditions.checkState(local == State.IDLE, "Local history %s state is %s", this, local);
         updateState(local, State.TX_OPEN);
 
-        return new ClientTransaction(getClient(), this,
-            new TransactionIdentifier(getIdentifier(), NEXT_TX_UPDATER.getAndIncrement(this)));
+        return new ClientTransaction(this, new TransactionIdentifier(getIdentifier(),
+            NEXT_TX_UPDATER.getAndIncrement(this)));
     }
 
     @Override