@@ -2987,7 +2987,12 @@ public String sanitizeName(String name) {
2987
2987
return name .replaceAll ("[^a-zA-Z0-9_]" , "" );
2988
2988
}
2989
2989
2990
- @ SuppressWarnings ("static-method" )
2990
+ /**
2991
+ * Sanitize tag
2992
+ *
2993
+ * @param tag Tag
2994
+ * @return Sanitized tag
2995
+ */
2991
2996
public String sanitizeTag (String tag ) {
2992
2997
// remove spaces and make strong case
2993
2998
String [] parts = tag .split (" " );
@@ -3080,9 +3085,9 @@ public void setParameterBooleanFlagWithCodegenProperty(CodegenParameter paramete
3080
3085
3081
3086
3082
3087
/**
3083
- * update codegen property's enum by adding "enumVars" (which has name and value)
3088
+ * Update codegen property's enum by adding "enumVars" (with name and value)
3084
3089
*
3085
- * @param cpList list of CodegenProperty
3090
+ * @param var list of CodegenProperty
3086
3091
*/
3087
3092
public void updateCodegenPropertyEnum (CodegenProperty var ) {
3088
3093
Map <String , Object > allowableValues = var .allowableValues ;
@@ -3096,7 +3101,6 @@ public void updateCodegenPropertyEnum(CodegenProperty var) {
3096
3101
return ;
3097
3102
}
3098
3103
3099
- //List<String> values = (List<String>) allowableValues.get("values");
3100
3104
List <Object > values = (List <Object >) allowableValues .get ("values" );
3101
3105
if (values == null ) {
3102
3106
return ;
@@ -3122,6 +3126,7 @@ public void updateCodegenPropertyEnum(CodegenProperty var) {
3122
3126
enumVars .add (enumVar );
3123
3127
}
3124
3128
allowableValues .put ("enumVars" , enumVars );
3129
+
3125
3130
// handle default value for enum, e.g. available => StatusEnum.AVAILABLE
3126
3131
if (var .defaultValue != null ) {
3127
3132
String enumName = null ;
0 commit comments