Sho SHIMIZU
Committed by Thomas Vachuska

Refactor: Get updating pendingDevices out of the loop

Change-Id: I1b1c5ac141a68a6d6308238ae0934249c7a3af96
...@@ -629,9 +629,9 @@ public class FlowRuleManager ...@@ -629,9 +629,9 @@ public class FlowRuleManager
629 for (FlowRuleOperation flowRuleOperation : ops) { 629 for (FlowRuleOperation flowRuleOperation : ops) {
630 FlowRuleBatchEntry fbe = 630 FlowRuleBatchEntry fbe =
631 new FlowRuleBatchEntry(mapOperationType(flowRuleOperation.type()), flowRuleOperation.rule()); 631 new FlowRuleBatchEntry(mapOperationType(flowRuleOperation.type()), flowRuleOperation.rule());
632 - pendingDevices.add(flowRuleOperation.rule().deviceId());
633 perDeviceBatches.put(flowRuleOperation.rule().deviceId(), fbe); 632 perDeviceBatches.put(flowRuleOperation.rule().deviceId(), fbe);
634 } 633 }
634 + pendingDevices.addAll(perDeviceBatches.keySet());
635 635
636 for (DeviceId deviceId : perDeviceBatches.keySet()) { 636 for (DeviceId deviceId : perDeviceBatches.keySet()) {
637 long id = idGenerator.getNewId(); 637 long id = idGenerator.getNewId();
......