Document QNAME constant 39/101039/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 27 Apr 2022 14:30:52 +0000 (16:30 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 10 May 2022 08:05:43 +0000 (10:05 +0200)
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 <robert.varga@pantheon.tech>
(cherry picked from commit d396ffad163ba838868eb19803f388e3adfc74db)

binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/BaseTemplate.xtend

index ec31b7db03cb67c1bfea9d138322942ae7684fcb..edbd323e9e0c2546c89e04df810bd242e6321d42 100644 (file)
@@ -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<JavaTypeName, String>»
+            /**
+             * 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»;