X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fbinding%2Fcompat%2FNotificationInvoker.java;h=f98c8b8a53f3f6d1476ef9df377e7fbab112e285;hp=cdc6315e4930c7433f11e3fe8de3e3c7efea100a;hb=b197d75e803beac663033287d769dce62c108490;hpb=9fb1df14f2dc885fee1dce821b753cc99af6e54f diff --git a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/NotificationInvoker.java b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/NotificationInvoker.java index cdc6315e49..f98c8b8a53 100644 --- a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/NotificationInvoker.java +++ b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/NotificationInvoker.java @@ -30,7 +30,7 @@ final class NotificationInvoker implements org.opendaylight.controller.sal.bindi delegate = listener; final Map, InvokerContext> builder = new HashMap<>(); for(final TypeToken ifaceToken : TypeToken.of(listener.getClass()).getTypes().interfaces()) { - Class iface = ifaceToken.getRawType(); + final Class iface = ifaceToken.getRawType(); if(NotificationListener.class.isAssignableFrom(iface) && BindingReflections.isBindingClass(iface)) { @SuppressWarnings("unchecked") final Class listenerType = (Class) iface; @@ -54,7 +54,7 @@ final class NotificationInvoker implements org.opendaylight.controller.sal.bindi @Override public void onNotification(final Notification notification) { getContext(notification.getImplementedInterface()).invoke(notification); - }; + } private InvokerContext getContext(final Class type) { return invokers.get(type); @@ -74,7 +74,7 @@ final class NotificationInvoker implements org.opendaylight.controller.sal.bindi return ret; } - private class InvokerContext { + private final class InvokerContext { private final QName name; private final NotificationListenerInvoker invoker;