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;
@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());