mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-16 08:31:26 +00:00
Merge pull request #2192 from tonicospinelli/php-client
avoid inner class
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user