X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fbinding%2Fcompat%2FHeliumNotificationProviderServiceAdapter.java;h=3a2812d63d10ddc5170561af084514269348d05c;hb=8da08c9f008d371c491cf6b35494ca36c2ebdcb9;hp=149c2c2dab04f72241326d3472ac43876f31fc7e;hpb=c2983daa13f85d139797eb3ca17f81c25e6997b7;p=controller.git diff --git a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/HeliumNotificationProviderServiceAdapter.java b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/HeliumNotificationProviderServiceAdapter.java index 149c2c2dab..3a2812d63d 100644 --- a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/HeliumNotificationProviderServiceAdapter.java +++ b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/HeliumNotificationProviderServiceAdapter.java @@ -16,14 +16,15 @@ import org.opendaylight.yangtools.yang.binding.Notification; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@Deprecated(forRemoval = true) public class HeliumNotificationProviderServiceAdapter extends HeliumNotificationServiceAdapter implements NotificationProviderService { private static final Logger LOG = LoggerFactory.getLogger(HeliumNotificationProviderServiceAdapter.class); private final NotificationPublishService notificationPublishService; - public HeliumNotificationProviderServiceAdapter(NotificationPublishService notificationPublishService, - NotificationService notificationService) { + public HeliumNotificationProviderServiceAdapter(final NotificationPublishService notificationPublishService, + final NotificationService notificationService) { super(notificationService); this.notificationPublishService = notificationPublishService; } @@ -33,7 +34,7 @@ public class HeliumNotificationProviderServiceAdapter extends HeliumNotification try { notificationPublishService.putNotification(notification); } catch (InterruptedException e) { - LOG.error("Notification publication was interupted: " + e); + LOG.error("Notification publication was interupted", e); } } @@ -42,17 +43,18 @@ public class HeliumNotificationProviderServiceAdapter extends HeliumNotification try { notificationPublishService.putNotification(notification); } catch (InterruptedException e) { - LOG.error("Notification publication was interupted: " + e); + LOG.error("Notification publication was interupted", e); } } @Override public ListenerRegistration registerInterestListener( - NotificationInterestListener interestListener) { + final NotificationInterestListener interestListener) { throw new UnsupportedOperationException("InterestListener is not supported."); } @Override - public void close() throws Exception { + public void close() { + } }