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>

index 746ccf5..0d43250 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 final ListenerRegistry<ActorSystemProviderListener> listeners = new ListenerRegistry<>();
+    private final ListenerRegistry<ActorSystemProviderListener> listeners = ListenerRegistry.create();
     public ActorSystemProviderImpl(
             final ClassLoader classLoader, final Props quarantinedMonitorActorProps, final Config akkaConfig) {

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.