Sho SHIMIZU
Committed by Thomas Vachuska

Refactor: Rename and inline to simplify inside of the loop

Change-Id: I445eb6505c99d770e612c43eb8fca6d53cf806d4
......@@ -626,10 +626,9 @@ public class FlowRuleManager
private void process(Set<FlowRuleOperation> ops) {
Multimap<DeviceId, FlowRuleBatchEntry> perDeviceBatches = ArrayListMultimap.create();
for (FlowRuleOperation flowRuleOperation : ops) {
FlowRuleBatchEntry fbe =
new FlowRuleBatchEntry(mapOperationType(flowRuleOperation.type()), flowRuleOperation.rule());
perDeviceBatches.put(flowRuleOperation.rule().deviceId(), fbe);
for (FlowRuleOperation op : ops) {
perDeviceBatches.put(op.rule().deviceId(),
new FlowRuleBatchEntry(mapOperationType(op.type()), op.rule()));
}
pendingDevices.addAll(perDeviceBatches.keySet());
......