Simplify DOMNotificationService contract
[mdsal.git] / dom / mdsal-dom-api / src / main / java / org / opendaylight / mdsal / dom / api / DOMDataTreeCursorAwareTransaction.java
index 1c449fdecfb067c6ac71892945b8df0393b2e167..691b736c606c24af668c1870596cbe510ddbdf7b 100644 (file)
@@ -8,8 +8,6 @@
 package org.opendaylight.mdsal.dom.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;
@@ -29,7 +27,7 @@ public interface DOMDataTreeCursorAwareTransaction extends DOMDataTreeCursorProv
      * @throws IllegalStateException when there's an open cursor, or this transaction is closed already.
      */
     @Override
-    @Nullable DOMDataTreeWriteCursor createCursor(@Nonnull DOMDataTreeIdentifier path);
+    DOMDataTreeWriteCursor createCursor(DOMDataTreeIdentifier path);
 
     /**
      * Cancels the transaction.
@@ -39,9 +37,8 @@ public interface DOMDataTreeCursorAwareTransaction extends DOMDataTreeCursorProv
      * Invoking cancel() on a finished transaction (future returned by {@link #commit()} already
      * successfully completed will always fail (return false).
      *
-     * @return <tt>false</tt> if the task could not be cancelled, typically because it has already
-     *         completed normally; <tt>true</tt> otherwise
-     *
+     * @return {@code false} if the task could not be cancelled, typically because it has already
+     *         completed normally; {@code true} otherwise
      */
     boolean cancel();