Commit a049e4c2 authored by William Cheng's avatar William Cheng
Browse files

better comment

1 merge request!3676Remove dollar sign from Java const name
Showing with 1 addition and 1 deletion
+1 -1
...@@ -986,7 +986,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code ...@@ -986,7 +986,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
model.imports.add("ApiModel"); 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("\\$", ""))); property.vendorExtensions.put("x-java-const-name", CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, property.nameInCamelCase.replaceAll("\\$", "")));
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment