Merge pull request #2184 from wing328/fix_dollar_sign

Map $ to value for parameter/property name
This commit is contained in:
wing328 2016-02-19 20:04:04 +08:00
commit 9ecea4b1f8

View File

@ -2198,6 +2198,11 @@ public class DefaultCodegen {
return "ERROR_UNKNOWN";
}
// if the name is just '$', map it to 'value' for the time being.
if ("$".equals(name)) {
return "value";
}
// input[] => input
name = name.replaceAll("\\[\\]", ""); // FIXME: a parameter should not be assigned. Also declare the methods parameters as 'final'.