Use light collection because of being synchronized already
Change-Id: I206e8a392f8bb158a8de42ef0c536e509fd21433
diff --git a/core/net/src/main/java/org/onosproject/net/flow/impl/FlowRuleManager.java b/core/net/src/main/java/org/onosproject/net/flow/impl/FlowRuleManager.java
index b4c3201..2301505 100644
--- a/core/net/src/main/java/org/onosproject/net/flow/impl/FlowRuleManager.java
+++ b/core/net/src/main/java/org/onosproject/net/flow/impl/FlowRuleManager.java
@@ -67,6 +67,7 @@
import java.util.Collections;
import java.util.Dictionary;
+import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
@@ -599,13 +600,12 @@
private final FlowRuleOperations fops;
private final AtomicBoolean hasFailed = new AtomicBoolean(false);
- private Set<DeviceId> pendingDevices;
+ private final Set<DeviceId> pendingDevices = new HashSet<>();
FlowOperationsProcessor(FlowRuleOperations ops) {
this.stages = Lists.newArrayList(ops.stages());
this.context = ops.callback();
this.fops = ops;
- pendingDevices = Sets.newConcurrentHashSet();
}
@Override