Deprecate BasicCodeGenerator's SEMVER_LATEST mode 65/100965/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 4 May 2022 09:41:35 +0000 (11:41 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 4 May 2022 09:46:07 +0000 (11:46 +0200)
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 <robert.varga@pantheon.tech>
plugin/yang-maven-plugin-spi/src/main/java/org/opendaylight/yangtools/yang2sources/spi/BasicCodeGenerator.java

index 9238ec12304da3b83dc031a7bec646bbbd996f9e..81978592c8c80678e0c9d14fd0e2397d1fee7b6d 100644 (file)
@@ -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;