From: Robert Varga Date: Sat, 27 Jan 2024 12:30:23 +0000 (+0100) Subject: Fix deprecation marker X-Git-Tag: v13.0.2~8 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=6047e089f91930c0bcd23edd3e40e9dfe9f907fb;hp=903f6f1f3d98ab73cdd252a0fc2e1c0045f48681;p=yangtools.git Fix deprecation marker We have the wrong version here -- 12.0.1 will never ship, it should be 13.0.1. Change-Id: Icf2b2cbfae56885231f997b3745d9c152f7f3fe3 Signed-off-by: Robert Varga --- diff --git a/common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/QNameModule.java b/common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/QNameModule.java index 8d12af8dee..f96ede82d6 100644 --- a/common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/QNameModule.java +++ b/common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/QNameModule.java @@ -138,7 +138,7 @@ public final class QNameModule implements Comparable, Immutable, Se * @throws NullPointerException if any argument is {@code null} * @deprecated Use {@link #ofRevision(XMLNamespace, Revision)} instead */ - @Deprecated(since = "12.0.1", forRemoval = true) + @Deprecated(since = "13.0.1", forRemoval = true) public static @NonNull QNameModule create(final XMLNamespace namespace, final Optional revision) { return ofRevision(namespace, revision.orElse(null)); } @@ -151,7 +151,7 @@ public final class QNameModule implements Comparable, Immutable, Se * @throws NullPointerException if {@code namespace} is null * @deprecated Use {@link #of(XMLNamespace)} instead */ - @Deprecated(since = "12.0.1", forRemoval = true) + @Deprecated(since = "13.0.1", forRemoval = true) public static @NonNull QNameModule create(final XMLNamespace namespace) { return of(namespace); } @@ -165,7 +165,7 @@ public final class QNameModule implements Comparable, Immutable, Se * @throws NullPointerException if any argument is {@code null} * @deprecated Use {@link #ofRevision(XMLNamespace, Revision)} instead */ - @Deprecated(since = "12.0.1", forRemoval = true) + @Deprecated(since = "13.0.1", forRemoval = true) public static @NonNull QNameModule create(final XMLNamespace namespace, final @Nullable Revision revision) { return ofRevision(namespace, revision); } @@ -197,7 +197,7 @@ public final class QNameModule implements Comparable, Immutable, Se * @return XMLNamespace of the namespace of the module * @deprecated Use {@link #namespace()} instead. */ - @Deprecated(since = "12.0.1", forRemoval = true) + @Deprecated(since = "13.0.1", forRemoval = true) public @NonNull XMLNamespace getNamespace() { return namespace(); } @@ -235,7 +235,7 @@ public final class QNameModule implements Comparable, Immutable, Se * @return date of the module revision which is specified as argument of YANG Module {@code revision} keyword * @deprecated Use {@link #findRevision()} or {@link #revision()} instead. */ - @Deprecated(since = "12.0.1", forRemoval = true) + @Deprecated(since = "13.0.1", forRemoval = true) public @NonNull Optional getRevision() { return findRevision(); }