Merge pull request #2192 from tonicospinelli/php-client

avoid inner class
This commit is contained in:
wing328
2016-02-21 17:50:21 +08:00
3 changed files with 49 additions and 8 deletions

View File

@@ -2095,14 +2095,6 @@ public class DefaultCodegen {
word = m.replaceAll(rep);
}
// Replace two underscores with $ to support inner classes.
p = Pattern.compile("(__)(.)");
m = p.matcher(word);
while (m.find()) {
word = m.replaceFirst("\\$" + m.group(2).toUpperCase());
m = p.matcher(word);
}
// Remove all underscores
p = Pattern.compile("(_)(.)");
m = p.matcher(word);