Migrate mdsal-binding-api to JDT annotations
[mdsal.git] / binding / mdsal-binding-api / src / main / java / org / opendaylight / mdsal / binding / api / DataTreeCursor.java
index 84895acba5b1589b7b3b32faff912685ea01486a..1560216b0e34cee70ebbfca4ff5652e51b7b9ad5 100644 (file)
@@ -5,19 +5,17 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.mdsal.binding.api;
 
 import com.google.common.annotations.Beta;
-import javax.annotation.Nonnull;
 import javax.annotation.concurrent.NotThreadSafe;
+import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.yangtools.yang.binding.DataContainer;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier.PathArgument;
 
-
 /**
- * A cursor holding a logical position within a conceptual data tree. It allows operations relative
- * to that position, as well as moving the position up or down the tree.
+ * A cursor holding a logical position within a conceptual data tree. It allows operations relative to that position,
+ * as well as moving the position up or down the tree.
  */
 @Beta
 @NotThreadSafe
@@ -29,7 +27,7 @@ public interface DataTreeCursor extends AutoCloseable {
      * @throws IllegalArgumentException when specified identifier does not identify a valid child,
      *         or if that child is not an instance of {@link DataContainer}.
      */
-    void enter(@Nonnull PathArgument child);
+    void enter(@NonNull PathArgument child);
 
     /**
      * Move the cursor to the specified child of the current position. This is the equivalent of
@@ -40,7 +38,7 @@ public interface DataTreeCursor extends AutoCloseable {
      * @throws IllegalArgumentException when specified path does not identify a valid child, or if
      *         that child is not an instance of {@link DataContainer}.
      */
-    void enter(@Nonnull PathArgument... path);
+    void enter(@NonNull PathArgument... path);
 
     /**
      * Move the cursor to the specified child of the current position. This is equivalent to
@@ -50,7 +48,7 @@ public interface DataTreeCursor extends AutoCloseable {
      * @throws IllegalArgumentException when specified path does not identify a valid child, or if
      *         that child is not an instance of {@link DataContainer}.
      */
-    void enter(@Nonnull Iterable<PathArgument> path);
+    void enter(@NonNull Iterable<PathArgument> path);
 
     /**
      * Move the cursor up to the parent of current position. This is equivalent of invoking