From: Robert Varga Date: Wed, 4 May 2022 09:41:35 +0000 (+0200) Subject: Deprecate BasicCodeGenerator's SEMVER_LATEST mode X-Git-Tag: v8.0.4~2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=yangtools.git;a=commitdiff_plain;h=195106b2b1659d21735bbd655fc046b89f173452 Deprecate BasicCodeGenerator's SEMVER_LATEST mode The entire class is deprecated, but make sure we mark SEMVER_LATEST import resolution mode as deprecated for removal. Change-Id: Ia088bf319435966acdb70ab93c56f2082d114c76 Signed-off-by: Robert Varga (cherry picked from commit 891481a9e0a38715e65098622eb673a79a423ad1) --- diff --git a/plugin/yang-maven-plugin-spi/src/main/java/org/opendaylight/yangtools/yang2sources/spi/BasicCodeGenerator.java b/plugin/yang-maven-plugin-spi/src/main/java/org/opendaylight/yangtools/yang2sources/spi/BasicCodeGenerator.java index 9238ec1230..81978592c8 100644 --- a/plugin/yang-maven-plugin-spi/src/main/java/org/opendaylight/yangtools/yang2sources/spi/BasicCodeGenerator.java +++ b/plugin/yang-maven-plugin-spi/src/main/java/org/opendaylight/yangtools/yang2sources/spi/BasicCodeGenerator.java @@ -34,7 +34,10 @@ public interface BasicCodeGenerator { * Semantic version based mode. Imports which specify a semantic version (via the OpenConfig extension) will * be satisfied by module which exports the latest compatible revision. Imports which do not specify semantic * version will be resolved just as they would be via {@link #REVISION_EXACT_OR_LATEST}. + * + * @deprecated This mode has no users and is deprecated for removal. */ + @Deprecated(forRemoval = true, since = "8.0.4") SEMVER_LATEST(FileGenerator.ImportResolutionMode.SEMVER_LATEST); private final FileGenerator.@NonNull ImportResolutionMode fileGeneratorMode;