[JAVA][KOTLIN] fix var Naming for all uppercase with Numbers (#2794)

This commit is contained in:
Vincent Devos
2019-05-05 11:41:06 +02:00
committed by William Cheng
parent f2f12b9e04
commit c33547e0f1
5 changed files with 48 additions and 12 deletions

View File

@@ -607,7 +607,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
}
// if it's all uppper case, do nothing
if (name.matches("^[A-Z_]*$")) {
if (name.matches("^[A-Z0-9_]*$")) {
return name;
}

View File

@@ -717,7 +717,7 @@ public abstract class AbstractKotlinCodegen extends DefaultCodegen implements Co
}
// if it's all uppper case, do nothing
if (name.matches("^[A-Z_]*$")) {
if (name.matches("^[A-Z0-9_]*$")) {
return name;
}