fix java okhttp (array of enum property)

This commit is contained in:
wing328
2016-08-03 00:49:24 +08:00
parent 25fa3e86f9
commit 1fde95f997
11 changed files with 536 additions and 60 deletions

View File

@@ -1695,7 +1695,7 @@ public class DefaultCodegen {
// set default value for variable with inner enum
if (property.defaultValue != null) {
property.defaultValue = property.defaultValue.replace(property.items.baseType, toEnumName(property.items));
property.defaultValue = property.defaultValue.replace(baseItem.baseType, toEnumName(baseItem));
}
}