Bug 499: Added support for old DOM Broker APIs.
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / java / org / opendaylight / controller / md / sal / dom / store / impl / tree / ListenerRegistrationNode.java
index d6d1ca309fc7eaa5b55ed83b52a07cb7f60c6506..ee49effd31002e88c8f89924f7b41eb977f7b3e2 100644 (file)
@@ -1,8 +1,8 @@
 package org.opendaylight.controller.md.sal.dom.store.impl.tree;
 
 import java.util.HashMap;
+import java.util.HashSet;
 import java.util.Map;
-import java.util.concurrent.ConcurrentSkipListSet;
 
 import org.opendaylight.controller.md.sal.common.api.data.AsyncDataBroker.DataChangeScope;
 import org.opendaylight.controller.md.sal.common.api.data.AsyncDataChangeListener;
@@ -20,7 +20,7 @@ public class ListenerRegistrationNode implements StoreTreeNode<ListenerRegistrat
     private final ListenerRegistrationNode parent;
     private final Map<PathArgument, ListenerRegistrationNode> children;
     private final PathArgument identifier;
-    private final ConcurrentSkipListSet<DataChangeListenerRegistration<?>> listeners;
+    private final HashSet<DataChangeListenerRegistration<?>> listeners;
 
     private ListenerRegistrationNode(final PathArgument identifier) {
         this(null,identifier);
@@ -30,7 +30,7 @@ public class ListenerRegistrationNode implements StoreTreeNode<ListenerRegistrat
         this.parent = parent;
         this.identifier = identifier;
         children = new HashMap<>();
-        listeners = new ConcurrentSkipListSet<>();
+        listeners = new HashSet<>();
     }
 
     public final static ListenerRegistrationNode createRoot() {