diff options
Diffstat (limited to 'models-interactions/model-actors/actorServiceProvider/src/main/java/org/onap/policy/controlloop/actorserviceprovider/pipeline/ListenerManager.java')
-rw-r--r-- | models-interactions/model-actors/actorServiceProvider/src/main/java/org/onap/policy/controlloop/actorserviceprovider/pipeline/ListenerManager.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/models-interactions/model-actors/actorServiceProvider/src/main/java/org/onap/policy/controlloop/actorserviceprovider/pipeline/ListenerManager.java b/models-interactions/model-actors/actorServiceProvider/src/main/java/org/onap/policy/controlloop/actorserviceprovider/pipeline/ListenerManager.java index 1d64a8710..b810de393 100644 --- a/models-interactions/model-actors/actorServiceProvider/src/main/java/org/onap/policy/controlloop/actorserviceprovider/pipeline/ListenerManager.java +++ b/models-interactions/model-actors/actorServiceProvider/src/main/java/org/onap/policy/controlloop/actorserviceprovider/pipeline/ListenerManager.java @@ -21,7 +21,8 @@ package org.onap.policy.controlloop.actorserviceprovider.pipeline; import java.util.ArrayList; -import java.util.IdentityHashMap; +import java.util.HashMap; +import java.util.Map; import lombok.Getter; import lombok.NoArgsConstructor; import org.onap.policy.controlloop.actorserviceprovider.Util; @@ -40,7 +41,7 @@ public class ListenerManager { /** * Listeners to be executed when {@link #stop()} is invoked. */ - private final IdentityHashMap<Runnable, Void> listeners = new IdentityHashMap<>(5); + private final Map<Runnable, Void> listeners = new HashMap<>(5); /** * Indicates that operations within the pipeline should stop executing. |