Deprecate all MD-SAL APIs
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / md / sal / binding / compat / HeliumNotificationProviderServiceAdapter.java
index 24376d64821f9f0028b40590c635cba0b085d337..101339318d6808cbdd8911f579634cacc4dd04b9 100644 (file)
@@ -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
+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<NotificationInterestListener> registerInterestListener(
-            NotificationInterestListener interestListener) {
+            final NotificationInterestListener interestListener) {
         throw new UnsupportedOperationException("InterestListener is not supported.");
     }
 
     @Override
-    public void close() throws Exception {
+    public void close() {
 
     }
-
 }