X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=plugin%2Fyang-maven-plugin-spi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang2sources%2Fspi%2FBasicCodeGenerator.java;h=8ecae2243b91ad02ea1534c210843993c3f03e34;hb=060e5867fd26ce83fbc8076cd303365e83444388;hp=8f621ddb11ddf70ee3fa27decce51d78aad5d3e4;hpb=8f0b0b5dd235e30ec60c691c1bb8ba2177b752f3;p=yangtools.git 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 8f621ddb11..8ecae2243b 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 @@ -19,20 +19,17 @@ import org.opendaylight.yangtools.yang.model.api.Module; /** * Maven 3.1.x and newer uses SLF4J internally, which means we do not need to pass a logger instance around. + * + * @deprecated Use {@link FileGenerator} instead. */ +@Deprecated public interface BasicCodeGenerator { enum ImportResolutionMode { /** * Standard, RFC6020 and RFC7950 compliant mode. Imports are satisfied by exact revision match (if specified), * or by latest available revision. */ - REVISION_EXACT_OR_LATEST(FileGenerator.ImportResolutionMode.REVISION_EXACT_OR_LATEST), - /** - * 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}. - */ - SEMVER_LATEST(FileGenerator.ImportResolutionMode.SEMVER_LATEST); + REVISION_EXACT_OR_LATEST(FileGenerator.ImportResolutionMode.REVISION_EXACT_OR_LATEST); private final FileGenerator.@NonNull ImportResolutionMode fileGeneratorMode;