Improvements on enum var name in Java client

* Place each enum var in a separate line
* Truncate common prefix when present
This commit is contained in:
xhh
2015-09-21 17:29:26 +08:00
parent cbc2fb237d
commit 6dcaa890cf
4 changed files with 40 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
public enum {{datatypeWithEnum}} {
{{#allowableValues}}{{#enumVars}}{{name}}("{{value}}"){{^-last}}, {{/-last}}{{#-last}};{{/-last}}{{/enumVars}}{{/allowableValues}}
{{#allowableValues}}{{#enumVars}}{{name}}("{{value}}"){{^-last}},
{{/-last}}{{#-last}};{{/-last}}{{/enumVars}}{{/allowableValues}}
private String value;