Add class prefix to tag with numbers (#6561)

* add class prefix to tag with numbers, update java to default tag name

* update codegen test
This commit is contained in:
wing328
2017-09-25 15:23:27 +08:00
committed by GitHub
parent 672cc29f73
commit 419ee1cc79
3 changed files with 3 additions and 7 deletions

View File

@@ -3502,7 +3502,7 @@ public class DefaultCodegen {
// tag starts with numbers
if (tag.matches("^\\d.*")) {
tag = "_" + tag;
tag = "Class" + tag;
}
return tag;

View File

@@ -1229,11 +1229,6 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
additionalProperties.put(propertyKey, value);
}
@Override
public String sanitizeTag(String tag) {
return camelize(sanitizeName(tag));
}
/**
* Output the Getter name for boolean property, e.g. isActive
*