package org.onap.policy.controlloop.actorserviceprovider.pipeline;
-import java.util.IdentityHashMap;
+import java.util.HashMap;
+import java.util.Map;
import java.util.concurrent.Future;
import lombok.NoArgsConstructor;
* needed if {@link #remove(Future)} is invoked, so that the same {@link Runnable} is
* used each time.
*/
- @SuppressWarnings("rawtypes")
- private final IdentityHashMap<Future, Runnable> future2listener = new IdentityHashMap<>(5);
+ private final Map<Future<?>, Runnable> future2listener = new HashMap<>(5);
/**
* Adds a future that is to be canceled when this controller is stopped. Note: if the
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;
/**
* 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.