Deprecate newDataInputWithoutValidation() for removal
[yangtools.git] / yang / yang-data-codec-binfmt / src / main / java / org / opendaylight / yangtools / yang / data / codec / binfmt / NormalizedNodeDataInput.java
index c15948bda9d6c61f1442c5841fad70c9c7798c85..5e4c4cda9040c8ed1d714b56d4a0f9ade18d80ee 100644 (file)
@@ -20,6 +20,7 @@ import org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStre
 import org.opendaylight.yangtools.yang.data.api.schema.stream.ReusableStreamReceiver;
 import org.opendaylight.yangtools.yang.data.impl.schema.ReusableImmutableNormalizedNodeStreamWriter;
 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
+import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier;
 
 /**
  * Interface for reading {@link NormalizedNode}s, {@link YangInstanceIdentifier}s, {@link PathArgument}s
@@ -71,8 +72,11 @@ public interface NormalizedNodeDataInput extends DataInput {
 
     PathArgument readPathArgument() throws IOException;
 
+    @Deprecated(forRemoval = true)
     SchemaPath readSchemaPath() throws IOException;
 
+    SchemaNodeIdentifier readSchemaNodeIdentifier() throws IOException;
+
     /**
      * Return the version of the underlying input stream.
      *
@@ -106,8 +110,7 @@ public interface NormalizedNodeDataInput extends DataInput {
      * @return a new {@link NormalizedNodeDataInput} instance
      * @deprecated Use {@link #newDataInput(DataInput)} instead.
      */
-    // FIXME: 5.0.0: deprecate for removal
-    @Deprecated
+    @Deprecated(forRemoval = true)
     static @NonNull NormalizedNodeDataInput newDataInputWithoutValidation(final @NonNull DataInput input) {
         return new VersionedNormalizedNodeDataInput(input);
     }