From: Robert Varga Date: Wed, 27 Apr 2022 14:30:52 +0000 (+0200) Subject: Document QNAME constant X-Git-Tag: v9.0.3~11 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=mdsal.git;a=commitdiff_plain;h=2e9ee8015b5c37b339d5107e1fbda85e9b04449e Document QNAME constant Javadoc does not like the constant not being documented. Make sure we attach a bit of documentation. JIRA: MDSAL-755 Change-Id: Ib56879225ea7653f22770d5e097d350e931ece13 Signed-off-by: Robert Varga (cherry picked from commit d396ffad163ba838868eb19803f388e3adfc74db) --- diff --git a/binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/BaseTemplate.xtend b/binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/BaseTemplate.xtend index ec31b7db03..edbd323e9e 100644 --- a/binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/BaseTemplate.xtend +++ b/binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/BaseTemplate.xtend @@ -296,6 +296,9 @@ abstract class BaseTemplate extends JavaFileTemplate { def protected emitConstant(Constant c) ''' «IF BindingMapping.QNAME_STATIC_FIELD_NAME.equals(c.name)» «val entry = c.value as Entry» + /** + * YANG identifier of the statement represented by this class. + */ public static final «c.type.importedNonNull» «c.name» = «entry.key.importedName».«BindingMapping.MODULE_INFO_QNAMEOF_METHOD_NAME»("«entry.value»"); «ELSE» public static final «c.type.importedName» «c.name» = «c.value»;