Fix checkstyle violations in sal-binding-broker
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / md / sal / binding / compat / FunctionalNotificationListenerAdapter.java
index 0d85ef9a5f9aca69fd4be8d070439b9fba8b3bfd..5189e8fb4614ae2b0272abd9696da997796f5cc0 100644 (file)
@@ -21,7 +21,8 @@ final class FunctionalNotificationListenerAdapter<N extends Notification> implem
     private final NotificationListener<N> delegate;
     private final Class<N> type;
 
-    public FunctionalNotificationListenerAdapter(final BindingNormalizedNodeSerializer codec, final Class<N> type, final NotificationListener<N> delegate) {
+    FunctionalNotificationListenerAdapter(final BindingNormalizedNodeSerializer codec, final Class<N> type,
+            final NotificationListener<N> delegate) {
         this.codec = codec;
         this.type = type;
         this.delegate = delegate;
@@ -29,11 +30,11 @@ final class FunctionalNotificationListenerAdapter<N extends Notification> implem
 
     @Override
     public void onNotification(@Nonnull final DOMNotification notification) {
-        delegate.onNotification( type.cast(deserialize(notification)));
+        delegate.onNotification(type.cast(deserialize(notification)));
     }
 
     private Notification deserialize(final DOMNotification notification) {
-        if(notification instanceof LazySerializedDOMNotification) {
+        if (notification instanceof LazySerializedDOMNotification) {
             return ((LazySerializedDOMNotification) notification).getBindingData();
         }
         return codec.fromNormalizedNodeNotification(notification.getType(), notification.getBody());