Reduce JSR305 proliferation
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / md / sal / dom / api / DOMNotificationService.java
index 37d3a019a628dcb5a9bfc52ccbbbb8741fdfa7ae..1e4625bb2c73e9defbd02215015e606f7c5fa3f4 100644 (file)
@@ -8,7 +8,7 @@
 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;
 
@@ -35,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
@@ -53,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);
 }