Deprecate JSONCodecFactory.Lhotka02 for removal 24/108924/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 14 Nov 2023 08:47:22 +0000 (09:47 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 14 Nov 2023 15:42:34 +0000 (16:42 +0100)
We have deprecated the provider in the previous release, indicate our
intent to remove it.

Change-Id: I6e6a65d97f5ca14367dcee2fc16a9822690342a3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
codec/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/JSONCodecFactory.java
codec/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/JSONCodecFactorySupplier.java

index c043b8c3bbcfb4447add418cea109360f6166673..c7c666952a3061f8041549d9e5af8419c3b21bed 100644 (file)
@@ -52,6 +52,7 @@ import org.opendaylight.yangtools.yang.model.api.type.UnknownTypeDefinition;
  * a particular {@link EffectiveModelContext}, but can be reused by multiple {@link JSONNormalizedNodeStreamWriter}s.
  */
 public abstract sealed class JSONCodecFactory extends AbstractCodecFactory<JSONCodec<?>> {
+    @Deprecated(since = "12.0.0", forRemoval = true)
     static final class Lhotka02 extends JSONCodecFactory {
         Lhotka02(final @NonNull EffectiveModelContext context, final @NonNull CodecCache<JSONCodec<?>> cache) {
             super(context, cache, JSONInstanceIdentifierCodec.Lhotka02::new);
index f3f02c931d77d6df1d4d2f4af5309740171388dd..8593fa6ef0ff09156e57effe74c912897827fa2f 100644 (file)
@@ -52,7 +52,7 @@ public enum JSONCodecFactorySupplier {
      *
      * @deprecated This is a historic implementation, retained for compatibility. Please migrate to {@link #RFC7951}.
      */
-    @Deprecated
+    @Deprecated(since = "11.0.0", forRemoval = true)
     DRAFT_LHOTKA_NETMOD_YANG_JSON_02() {
         @Override
         JSONCodecFactory createFactory(final EffectiveModelContext context, final CodecCache<JSONCodec<?>> cache) {