Fix checkstyle
[openflowplugin.git] / applications / bulk-o-matic / src / main / java / org / opendaylight / openflowplugin / applications / bulk / o / matic / FlowWriterTxChain.java
index 067b6d34395556afcf7295f0a7c16af3c568d0a9..b66d3477e02c07a5885a1267916935fc1016880f 100644 (file)
@@ -109,16 +109,16 @@ public class FlowWriterTxChain implements FlowCounterMBean {
         @Override
         public void run() {
             writeOpStatus.set(FlowCounter.OperationStatus.IN_PROGRESS.status());
-            short tableId = startTableId;
-            int numSubmits = flowsPerDpn / batchSize;
-            int sourceIp = 1;
-            int newBatchSize = batchSize;
+            final int numSubmits = flowsPerDpn / batchSize;
             LOG.info("Number of Txn for dpId: {} is: {}", dpId, numSubmits);
 
             txChain = dataBroker.createMergingTransactionChain();
             txChain.addCallback(this);
             LOG.info("Creating new txChain: {} for dpid: {}", txChain, dpId);
 
+            short tableId = startTableId;
+            int sourceIp = 1;
+            int newBatchSize = batchSize;
             for (int i = 1; i <= numSubmits; i++) {
                 WriteTransaction writeTransaction = txChain.newWriteOnlyTransaction();
                 short calculatedTableId = tableId;