Migrate to ListenerRegistry.create() 93/80393/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 19 Feb 2019 14:24:29 +0000 (15:24 +0100)
committerTom Pantelis <tompantelis@gmail.com>
Tue, 19 Feb 2019 20:11:53 +0000 (20:11 +0000)
As per deprecation, the default constructor will be going away.

Change-Id: Id3216acc23fd56554b30b4225275f5bd2cbf4893
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/akka/impl/ActorSystemProviderImpl.java

index 746ccf5524b9f0fa686654f3abb497edac7de6ad..0d43250f5d42c2c67370f8e83d01f3aeaa82bb9f 100644 (file)
@@ -27,7 +27,7 @@ public class ActorSystemProviderImpl implements ActorSystemProvider, AutoCloseab
     private static final Logger LOG = LoggerFactory.getLogger(ActorSystemProviderImpl.class);
 
     private final ActorSystem actorSystem;
     private static final Logger LOG = LoggerFactory.getLogger(ActorSystemProviderImpl.class);
 
     private final ActorSystem actorSystem;
-    private final ListenerRegistry<ActorSystemProviderListener> listeners = new ListenerRegistry<>();
+    private final ListenerRegistry<ActorSystemProviderListener> listeners = ListenerRegistry.create();
 
     public ActorSystemProviderImpl(
             final ClassLoader classLoader, final Props quarantinedMonitorActorProps, final Config akkaConfig) {
 
     public ActorSystemProviderImpl(
             final ClassLoader classLoader, final Props quarantinedMonitorActorProps, final Config akkaConfig) {