Use light collection because of being synchronized already
Change-Id: I206e8a392f8bb158a8de42ef0c536e509fd21433
Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -67,6 +67,7 @@ import org.slf4j.Logger; | ... | @@ -67,6 +67,7 @@ import org.slf4j.Logger; |
| 67 | 67 | ||
| 68 | import java.util.Collections; | 68 | import java.util.Collections; |
| 69 | import java.util.Dictionary; | 69 | import java.util.Dictionary; |
| 70 | +import java.util.HashSet; | ||
| 70 | import java.util.List; | 71 | import java.util.List; |
| 71 | import java.util.Map; | 72 | import java.util.Map; |
| 72 | import java.util.Set; | 73 | import java.util.Set; |
| ... | @@ -578,7 +579,7 @@ public class FlowRuleManager | ... | @@ -578,7 +579,7 @@ public class FlowRuleManager |
| 578 | private final FlowRuleOperations fops; | 579 | private final FlowRuleOperations fops; |
| 579 | private final AtomicBoolean hasFailed = new AtomicBoolean(false); | 580 | private final AtomicBoolean hasFailed = new AtomicBoolean(false); |
| 580 | 581 | ||
| 581 | - private final Set<DeviceId> pendingDevices = Sets.newConcurrentHashSet(); | 582 | + private final Set<DeviceId> pendingDevices = new HashSet<>(); |
| 582 | 583 | ||
| 583 | FlowOperationsProcessor(FlowRuleOperations ops) { | 584 | FlowOperationsProcessor(FlowRuleOperations ops) { |
| 584 | this.stages = Lists.newArrayList(ops.stages()); | 585 | this.stages = Lists.newArrayList(ops.stages()); | ... | ... |
-
Please register or login to post a comment