BUG-868: disallow instantiation without executor
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / sal / binding / impl / NotificationBrokerImpl.java
index 7d844b3bf578c1958b3849e4b4d6841b2fd24ddb..716670f5a38b2960a0c25887360744b149bfad6c 100644 (file)
@@ -36,17 +36,11 @@ public class NotificationBrokerImpl implements NotificationProviderService, Auto
 
     private final ListenerRegistry<NotificationInterestListener> interestListeners =
             ListenerRegistry.create();
 
     private final ListenerRegistry<NotificationInterestListener> interestListeners =
             ListenerRegistry.create();
-
     private final Multimap<Class<? extends Notification>, NotificationListenerRegistration<?>> listeners =
             Multimaps.synchronizedSetMultimap(HashMultimap.<Class<? extends Notification>, NotificationListenerRegistration<?>>create());
     private final Multimap<Class<? extends Notification>, NotificationListenerRegistration<?>> listeners =
             Multimaps.synchronizedSetMultimap(HashMultimap.<Class<? extends Notification>, NotificationListenerRegistration<?>>create());
-    private ExecutorService executor;
+    private final ExecutorService executor;
 
 
-    @Deprecated
     public NotificationBrokerImpl(final ExecutorService executor) {
     public NotificationBrokerImpl(final ExecutorService executor) {
-        this.setExecutor(executor);
-    }
-
-    public void setExecutor(final ExecutorService executor) {
         this.executor = Preconditions.checkNotNull(executor);
     }
 
         this.executor = Preconditions.checkNotNull(executor);
     }