Sho SHIMIZU

Refactor: Rename and inline to simplify inside of the loop

Change-Id: I445eb6505c99d770e612c43eb8fca6d53cf806d4
......@@ -605,10 +605,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());
......