Deprecate YangInstanceIdentifier.EMPTY
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / tree / CursorAwareDataTreeSnapshot.java
index 896a9003b55015b4109650a218782c9cc7f43785..10a6dfdefc0f692fc444232235fed581a8a3fe41 100644 (file)
@@ -34,7 +34,7 @@ public interface CursorAwareDataTreeSnapshot extends DataTreeSnapshot {
      * @throws IllegalStateException if there is another cursor currently open.
      */
     default DataTreeSnapshotCursor openCursor() {
-        return openCursor(YangInstanceIdentifier.EMPTY).get();
+        return openCursor(YangInstanceIdentifier.empty()).get();
     }
 
     @Override