Do not generate 'isFoo()' methods
[mdsal.git] / dom / mdsal-dom-api / src / main / java / org / opendaylight / mdsal / dom / api / DOMDataTreeListener.java
index 22de496972417db8701536ee610da920bef9376e..809a34f7d75181b37c1667e1ff215a3def168a1a 100644 (file)
@@ -10,14 +10,17 @@ package org.opendaylight.mdsal.dom.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.data.api.schema.NormalizedNode;
 import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeCandidate;
 
 /**
  * Interface implemented by data consumers, e.g. processes wanting to act on data
  * after it has been introduced to the conceptual data tree.
+ *
+ * @deprecated This interface is scheduled for removal in the next major release.
  */
+@Deprecated(forRemoval = true)
 public interface DOMDataTreeListener extends EventListener {
     /**
      * Invoked whenever one or more registered subtrees change. The logical changes are reported,
@@ -29,7 +32,8 @@ public interface DOMDataTreeListener extends EventListener {
      *                 This includes all the subtrees this listener is subscribed to, even those
      *                 which have not changed.
      */
-    void onDataTreeChanged(@Nonnull Collection<DataTreeCandidate> changes, @Nonnull Map<DOMDataTreeIdentifier, NormalizedNode<?, ?>> subtrees);
+    void onDataTreeChanged(@NonNull Collection<DataTreeCandidate> changes,
+            @NonNull Map<DOMDataTreeIdentifier, NormalizedNode<?, ?>> subtrees);
 
     /**
      * Invoked when a subtree listening failure occurs. This can be triggered, for example, when a
@@ -38,5 +42,5 @@ public interface DOMDataTreeListener extends EventListener {
      *
      * @param causes Collection of failure causes, may not be null or empty.
      */
-    void onDataTreeFailed(@Nonnull Collection<DOMDataTreeListeningException> causes);
+    void onDataTreeFailed(@NonNull Collection<DOMDataTreeListeningException> causes);
 }