Don't duplicate Javadoc from global enum Doxygen comments twice.

The commit d52de0f36f did fix the bug with
missing Javadoc comments for the nested enums, but it also resulted in the
Javadoc being generated twice for global enums, remove the code outputting the
same Javadoc for the second time to fix this.
This commit is contained in:
Vadim Zeitlin 2015-07-26 18:48:57 +02:00
commit dc23904408

View file

@ -1278,7 +1278,7 @@ public:
if (doxygen && doxygenTranslator->hasDocumentation(n)){
String *doxygen_comments=doxygenTranslator->getDocumentation(n);
if(comment_creation_chatter) {
Printf(enum_code, "/* This was generated from enumvalueDeclaration() */");
Printf(enum_code, "/* This was generated from enumDeclaration() */");
}
Printv(enum_code, Char(doxygen_comments), NIL);
Delete(doxygen_comments);
@ -1377,15 +1377,6 @@ public:
Printv(f_enum, typemapLookup(n, "javaimports", typemap_lookup_type, WARN_NONE), // Import statements
"\n\n", NIL);
//translate and write javadoc comment if flagged
if (doxygen && doxygenTranslator->hasDocumentation(n)){
String *doxygen_comments=doxygenTranslator->getDocumentation(n);
if(comment_creation_chatter)
Printf(f_enum, "/* This was generated from enumDeclaration() */");
Printv(f_enum, Char(doxygen_comments), NIL);
Delete(doxygen_comments);
}
Printv(f_enum, enum_code, "\n", NIL);
Printf(f_enum, "\n");