Migrate mdsal-binding-api to JDT annotations
[mdsal.git] / binding / mdsal-binding-api / src / main / java / org / opendaylight / mdsal / binding / api / CursorAwareWriteTransaction.java
index 7c024a864b97b8201d2cf47626e8d2c9015f25af..46d5c5d4278c2836736706ddd1899c8dadd2ee4e 100644 (file)
@@ -9,8 +9,6 @@
 package org.opendaylight.mdsal.binding.api;
 
 import com.google.common.util.concurrent.FluentFuture;
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
 import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.mdsal.common.api.CommitInfo;
 import org.opendaylight.mdsal.common.api.TransactionCommitFailedException;
@@ -20,7 +18,6 @@ import org.opendaylight.yangtools.yang.binding.DataObject;
  * Write transaction that provides cursor's with write access to the data tree.
  */
 public interface CursorAwareWriteTransaction extends DataTreeCursorProvider {
-
     /**
      * Create a {@link DataTreeWriteCursor} anchored at the specified path.
      * There can only be one cursor open at a time.
@@ -30,9 +27,8 @@ public interface CursorAwareWriteTransaction extends DataTreeCursorProvider {
      * @return write cursor at the desired location.
      * @throws IllegalStateException when there's an open cursor, or this transaction is closed already.
      */
-    @Nullable
     @Override
-    <T extends DataObject> DataTreeWriteCursor createCursor(@Nonnull DataTreeIdentifier<T> path);
+    <T extends DataObject> DataTreeWriteCursor createCursor(DataTreeIdentifier<T> path);
 
     /**
      * Cancels the transaction.