Reduce JSR305 proliferation
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / md / sal / dom / api / DOMNotificationService.java
index 3edde3c8cd721dc7b9c0c2c76ece498f17f67aab..1e4625bb2c73e9defbd02215015e606f7c5fa3f4 100644 (file)
@@ -8,14 +8,17 @@
 package org.opendaylight.controller.md.sal.dom.api;
 
 import java.util.Collection;
-import javax.annotation.Nonnull;
+import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.yangtools.concepts.ListenerRegistration;
 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
 
 /**
  * A {@link DOMService} which allows its users to subscribe to receive
  * {@link DOMNotification}s.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMNotificationService} instead
  */
+@Deprecated
 public interface DOMNotificationService extends DOMService {
     /**
      * Register a {@link DOMNotificationListener} to receive a set of notifications. As with
@@ -32,7 +35,7 @@ public interface DOMNotificationService extends DOMService {
      * @throws NullPointerException if either of the arguments is null
      */
     <T extends DOMNotificationListener> ListenerRegistration<T> registerNotificationListener(
-            @Nonnull T listener, @Nonnull Collection<SchemaPath> types);
+            @NonNull T listener, @NonNull Collection<SchemaPath> types);
 
     /**
      * Register a {@link DOMNotificationListener} to receive a set of notifications. As with
@@ -50,5 +53,5 @@ public interface DOMNotificationService extends DOMService {
      */
     // FIXME: Java 8: provide a default implementation of this method.
     <T extends DOMNotificationListener> ListenerRegistration<T> registerNotificationListener(
-            @Nonnull T listener, SchemaPath... types);
+            @NonNull T listener, SchemaPath... types);
 }