Remove CursorAwareDataTreeSnapshot.createCursor()
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / tree / CursorAwareDataTreeModification.java
index eaa7e790df86e9f41a5e24eddb30295b284e4e70..73285963aa66f7a516228b9f070db5224c6bd480 100644 (file)
@@ -16,20 +16,6 @@ import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
  */
 @Beta
 public interface CursorAwareDataTreeModification extends DataTreeModification, CursorAwareDataTreeSnapshot {
-    /**
-     * Create a new {@link DataTreeModificationCursor} at specified path. May fail
-     * if specified path does not exist. It is a programming error to use normal
-     *
-     * @param path Path at which the cursor is to be anchored
-     * @return A new cursor, or null if the path does not exist.
-     * @throws IllegalStateException if there is another cursor currently open,
-     *                               or the modification is already {@link #ready()}.
-     * @deprecated Use {@link #openCursor(YangInstanceIdentifier)} instead.
-     */
-    @Deprecated
-    @Override
-    DataTreeModificationCursor createCursor(YangInstanceIdentifier path);
-
     /**
      * Create a new {@link DataTreeModificationCursor} at specified path. May fail
      * if specified path does not exist.
@@ -40,9 +26,7 @@ public interface CursorAwareDataTreeModification extends DataTreeModification, C
      *                               or the modification is already {@link #ready()}.
      */
     @Override
-    default Optional<? extends DataTreeModificationCursor> openCursor(final YangInstanceIdentifier path) {
-        return Optional.ofNullable(createCursor(path));
-    }
+    Optional<? extends DataTreeModificationCursor> openCursor(YangInstanceIdentifier path);
 
     /**
      * Create a new {@link DataTreeModificationCursor} at the root of the modification.