Migrate mdsal-binding-api to JDT annotations
[mdsal.git] / binding / mdsal-binding-api / src / main / java / org / opendaylight / mdsal / binding / api / DataTreeListener.java
index cabcec92f46c91ca4a9a64de1705a02fb56fbeee..b432ea27083ec07e747dbb447aeec10e8a7bc24b 100644 (file)
@@ -10,7 +10,7 @@ package org.opendaylight.mdsal.binding.api;
 import java.util.Collection;
 import java.util.EventListener;
 import java.util.Map;
-import javax.annotation.Nonnull;
+import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.yangtools.yang.binding.DataObject;
 
 /**
@@ -28,8 +28,8 @@ public interface DataTreeListener extends EventListener {
      *        This includes all the subtrees this listener is subscribed to, even those which have
      *        not changed.
      */
-    void onDataTreeChanged(@Nonnull Collection<DataTreeModification<?>> changes,
-            @Nonnull Map<DataTreeIdentifier<?>, DataObject> subtrees);
+    void onDataTreeChanged(@NonNull Collection<DataTreeModification<?>> changes,
+            @NonNull Map<DataTreeIdentifier<?>, DataObject> subtrees);
 
     /**
      * Invoked when a subtree listening failure occurs. This can be triggered, for example, when a
@@ -38,6 +38,5 @@ public interface DataTreeListener extends EventListener {
      *
      * @param causes Collection of failure causes, may not be null or empty.
      */
-    void onDataTreeFailed(@Nonnull Collection<DataTreeListeningException> causes);
-
+    void onDataTreeFailed(@NonNull Collection<DataTreeListeningException> causes);
 }
\ No newline at end of file