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=24376d64821f9f0028b40590c635cba0b085d337;hpb=81d69b64c20a8e17279a57920beab854922c668c;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 24376d6482..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,13 +16,15 @@ import org.opendaylight.yangtools.yang.binding.Notification; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class HeliumNotificationProviderServiceAdapter extends HeliumNotificationServiceAdapter implements NotificationProviderService, AutoCloseable { +@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; } @@ -32,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); } } @@ -41,19 +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() { } - }