remove support to inner class

fix #2191
PR #2192
This commit is contained in:
Antonio Spinelli 2016-02-21 01:33:01 -03:00
parent bab40566bc
commit 1446f4a13e
2 changed files with 0 additions and 12 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);

View File

@ -372,10 +372,6 @@ public class PhpClientCodegen extends DefaultCodegen implements CodegenConfig {
return camelize(name);
}
public static String camelize(String word) {
return DefaultCodegen.camelize(word).replaceAll("\\$", "");
}
@Override
public String toModelFilename(String name) {
// should be the same as the model name