Committed by
Thomas Vachuska
Refactor: Rename and inline to simplify inside of the loop
Change-Id: I445eb6505c99d770e612c43eb8fca6d53cf806d4
Showing
1 changed file
with
3 additions
and
4 deletions
... | @@ -626,10 +626,9 @@ public class FlowRuleManager | ... | @@ -626,10 +626,9 @@ public class FlowRuleManager |
626 | private void process(Set<FlowRuleOperation> ops) { | 626 | private void process(Set<FlowRuleOperation> ops) { |
627 | Multimap<DeviceId, FlowRuleBatchEntry> perDeviceBatches = ArrayListMultimap.create(); | 627 | Multimap<DeviceId, FlowRuleBatchEntry> perDeviceBatches = ArrayListMultimap.create(); |
628 | 628 | ||
629 | - for (FlowRuleOperation flowRuleOperation : ops) { | 629 | + for (FlowRuleOperation op : ops) { |
630 | - FlowRuleBatchEntry fbe = | 630 | + perDeviceBatches.put(op.rule().deviceId(), |
631 | - new FlowRuleBatchEntry(mapOperationType(flowRuleOperation.type()), flowRuleOperation.rule()); | 631 | + new FlowRuleBatchEntry(mapOperationType(op.type()), op.rule())); |
632 | - perDeviceBatches.put(flowRuleOperation.rule().deviceId(), fbe); | ||
633 | } | 632 | } |
634 | pendingDevices.addAll(perDeviceBatches.keySet()); | 633 | pendingDevices.addAll(perDeviceBatches.keySet()); |
635 | 634 | ... | ... |
-
Please register or login to post a comment