Skip to content

Commit 908243b

Browse files
committed
fix docstring
1 parent c15992b commit 908243b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2987,7 +2987,12 @@ public String sanitizeName(String name) {
29872987
return name.replaceAll("[^a-zA-Z0-9_]", "");
29882988
}
29892989

2990-
@SuppressWarnings("static-method")
2990+
/**
2991+
* Sanitize tag
2992+
*
2993+
* @param tag Tag
2994+
* @return Sanitized tag
2995+
*/
29912996
public String sanitizeTag(String tag) {
29922997
// remove spaces and make strong case
29932998
String[] parts = tag.split(" ");
@@ -3080,9 +3085,9 @@ public void setParameterBooleanFlagWithCodegenProperty(CodegenParameter paramete
30803085

30813086

30823087
/**
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)
30843089
*
3085-
* @param cpList list of CodegenProperty
3090+
* @param var list of CodegenProperty
30863091
*/
30873092
public void updateCodegenPropertyEnum(CodegenProperty var) {
30883093
Map<String, Object> allowableValues = var.allowableValues;
@@ -3096,7 +3101,6 @@ public void updateCodegenPropertyEnum(CodegenProperty var) {
30963101
return;
30973102
}
30983103

3099-
//List<String> values = (List<String>) allowableValues.get("values");
31003104
List<Object> values = (List<Object>) allowableValues.get("values");
31013105
if (values == null) {
31023106
return;
@@ -3122,6 +3126,7 @@ public void updateCodegenPropertyEnum(CodegenProperty var) {
31223126
enumVars.add(enumVar);
31233127
}
31243128
allowableValues.put("enumVars", enumVars);
3129+
31253130
// handle default value for enum, e.g. available => StatusEnum.AVAILABLE
31263131
if (var.defaultValue != null) {
31273132
String enumName = null;

0 commit comments

Comments
 (0)