Fix findbugs violations in md-sal - part 2
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / java / org / opendaylight / controller / md / sal / dom / broker / impl / DOMNotificationRouterEvent.java
index a1d5faee7ccd113953448db7da8001766c443692..8aa9f0d503eb1a80135cfd5b813ac22450434a24 100644 (file)
@@ -48,11 +48,9 @@ final class DOMNotificationRouterEvent {
         LOG.trace("Start delivery of notification {}", notification);
         for (ListenerRegistration<? extends DOMNotificationListener> r : subscribers) {
             final DOMNotificationListener listener = r.getInstance();
-            if (listener != null) {
-                LOG.trace("Notifying listener {}", listener);
-                listener.onNotification(notification);
-                LOG.trace("Listener notification completed");
-            }
+            LOG.trace("Notifying listener {}", listener);
+            listener.onNotification(notification);
+            LOG.trace("Listener notification completed");
         }
         LOG.trace("Delivery completed");
     }
@@ -63,4 +61,4 @@ final class DOMNotificationRouterEvent {
         subscribers = null;
         future = null;
     }
-}
\ No newline at end of file
+}