forked from loafle/openapi-generator-original
rename function to avoid confusion of function in parent class (#15775)
This commit is contained in:
parent
59ba00e1f3
commit
658c6eb567
@ -1092,7 +1092,7 @@ public class TypeScriptClientCodegen extends AbstractTypeScriptClientCodegen imp
|
||||
return;
|
||||
}
|
||||
|
||||
String[] parts = splitComposedType(type);
|
||||
String[] parts = splitComposedTypes(type);
|
||||
for (String s : parts) {
|
||||
super.addImport(importsToBeAddedTo, s);
|
||||
}
|
||||
@ -1105,7 +1105,7 @@ public class TypeScriptClientCodegen extends AbstractTypeScriptClientCodegen imp
|
||||
* @param type String with composed types
|
||||
* @return list of types
|
||||
*/
|
||||
protected String[] splitComposedType(String type) {
|
||||
protected String[] splitComposedTypes(String type) {
|
||||
return type.replace(" ", "").split("[|&<>]");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user