forked from loafle/openapi-generator-original
fix java docstring
This commit is contained in:
parent
2942ef8b73
commit
f5bee0c1b7
@ -251,7 +251,7 @@ public class DefaultCodegen {
|
||||
*
|
||||
* @param value enum variable name
|
||||
* @param datatype data type
|
||||
* @return the sanitized variable name for enum
|
||||
* @return the default value for the enum
|
||||
*/
|
||||
public String toEnumDefaultValue(String value, String datatype) {
|
||||
return datatype + "." + value;
|
||||
@ -259,11 +259,11 @@ public class DefaultCodegen {
|
||||
|
||||
/**
|
||||
* Return the enum value in the language specifed format
|
||||
* e.g. status => "status"
|
||||
* e.g. status becomes "status"
|
||||
*
|
||||
* @param value enum variable name
|
||||
* @param datatype data type
|
||||
* @return the sanitized variable name for enum
|
||||
* @return the sanitized value for enum
|
||||
*/
|
||||
public String toEnumValue(String value, String datatype) {
|
||||
if ("number".equalsIgnoreCase(datatype)) {
|
||||
@ -277,6 +277,7 @@ public class DefaultCodegen {
|
||||
* Return the sanitized variable name for enum
|
||||
*
|
||||
* @param value enum variable name
|
||||
* @param datatype data type
|
||||
* @return the sanitized variable name for enum
|
||||
*/
|
||||
public String toEnumVarName(String value, String datatype) {
|
||||
|
@ -367,26 +367,8 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
|
||||
|
||||
return codegenModel;
|
||||
}
|
||||
/*
|
||||
|
||||
@Override
|
||||
public String findCommonPrefixOfVars(List<Object> vars) {
|
||||
try {
|
||||
String prefix = StringUtils.getCommonPrefix(vars.toArray(new String[vars.size()]));
|
||||
// exclude trailing characters that should be part of a valid variable
|
||||
// e.g. ["status-on", "status-off"] => "status-" (not "status-o")
|
||||
return prefix.replaceAll("[a-zA-Z0-9]+\\z", "");
|
||||
} catch (ArrayStoreException e) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
*/
|
||||
/**
|
||||
* Return the value in the language specifed format
|
||||
* e.g. status => "status"
|
||||
*
|
||||
* @param value enum variable name
|
||||
* @return the sanitized variable name for enum
|
||||
*/
|
||||
public String toEnumValue(String value, String datatype) {
|
||||
if ("int?".equalsIgnoreCase(datatype) || "long?".equalsIgnoreCase(datatype) ||
|
||||
"double?".equalsIgnoreCase(datatype) || "float?".equalsIgnoreCase(datatype)) {
|
||||
|
@ -569,13 +569,6 @@ public class PhpClientCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
p.example = example;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the value in the language specifed format
|
||||
* e.g. status => "status"
|
||||
*
|
||||
* @param value enum variable name
|
||||
* @return the sanitized variable name for enum
|
||||
*/
|
||||
@Override
|
||||
public String toEnumValue(String value, String datatype) {
|
||||
if ("int".equals(datatype) || "double".equals(datatype) || "float".equals(datatype)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user