Do not use SchemaPath in yang-data-codec-xml 07/102007/4
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 8 Aug 2022 08:52:33 +0000 (10:52 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 10 Aug 2022 09:21:50 +0000 (09:21 +0000)
The methods using SchemaPath have been deprecated for removal, now
remove them.

JIRA: YANGTOOLS-1244
Change-Id: Ibc54bbf4a90fe9e327d42ba261c5a67abbbb8f11
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
codec/yang-data-codec-xml/src/main/java/org/opendaylight/yangtools/yang/data/codec/xml/XMLStreamNormalizedNodeStreamWriter.java

index 26ac2fe655dde86b19f20d377d271759c47c49fa..973c20e3582d0a783bd9d8e77cb031c9c4e9cc90 100644 (file)
@@ -33,7 +33,6 @@ import org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStre
 import org.opendaylight.yangtools.yang.data.util.NormalizedNodeStreamWriterStack;
 import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
 import org.opendaylight.yangtools.yang.model.api.EffectiveStatementInference;
-import org.opendaylight.yangtools.yang.model.api.SchemaPath;
 import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absolute;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -89,22 +88,6 @@ public abstract class XMLStreamNormalizedNodeStreamWriter<T> implements Normaliz
             NormalizedNodeStreamWriterStack.of(inference));
     }
 
-    /**
-     * Create a new writer with the specified context and rooted in the specified schema path.
-     *
-     * @param writer Output {@link XMLStreamWriter}
-     * @param context Associated {@link EffectiveModelContext}.
-     * @param path path
-     * @return A new {@link NormalizedNodeStreamWriter}
-     * @deprecated Use one of the alternative overloads.
-     */
-    @Deprecated(since = "9.0.1", forRemoval = true)
-    public static @NonNull NormalizedNodeStreamWriter create(final XMLStreamWriter writer,
-            final EffectiveModelContext context, final SchemaPath path) {
-        return new SchemaAwareXMLStreamNormalizedNodeStreamWriter(writer, context,
-            NormalizedNodeStreamWriterStack.of(context, path));
-    }
-
     /**
      * Create a new writer with the specified context and rooted in the specified schema path.
      *