Migrate OSGI compendium reference
[controller.git] / opendaylight / md-sal / sal-binding-api / src / main / java / org / opendaylight / controller / md / sal / binding / api / DataTreeModification.java
index aac51a6a4cfa349d4c5bf602c71c12a169dd8395..0b6c6a95c6801f1b06fff05f1a7be6ca90ab6a8a 100644 (file)
@@ -3,12 +3,11 @@
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html.
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.controller.md.sal.binding.api;
 
-import javax.annotation.Nonnull;
+import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.yangtools.yang.binding.DataObject;
 
 /**
@@ -16,8 +15,10 @@ import org.opendaylight.yangtools.yang.binding.DataObject;
  *
  * @author Tony Tkacik <ttkacik@cisco.com>
  *
+ * @deprecated Use {@link org.opendaylight.mdsal.binding.api.DataTreeModification} instead.
  */
-public interface DataTreeModification {
+@Deprecated(forRemoval = true)
+public interface DataTreeModification<T extends DataObject> {
 
     /**
      * Get the modification root path. This is the path of the root node
@@ -25,13 +26,12 @@ public interface DataTreeModification {
      *
      * @return absolute path of the root node
      */
-    @Nonnull DataTreeIdentifier getRootPath();
+    @NonNull DataTreeIdentifier<T> getRootPath();
 
     /**
      * Get the modification root node.
      *
      * @return modification root node
      */
-    @Nonnull DataObjectModification<? extends DataObject> getRootNode();
-
+    @NonNull DataObjectModification<T> getRootNode();
 }