better comment

This commit is contained in:
William Cheng 2019-08-19 18:06:27 +08:00
parent eee7a40629
commit a049e4c271

View File

@ -986,7 +986,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
model.imports.add("ApiModel");
}
// add java constancct name
// store java constant property name in vendor extension, remove dollar sign from the constant name
property.vendorExtensions.put("x-java-const-name", CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, property.nameInCamelCase.replaceAll("\\$", "")));
}