rename function to avoid confusion of function in parent class (#15775)

This commit is contained in:
William Cheng 2023-06-07 14:57:15 +08:00 committed by GitHub
parent 59ba00e1f3
commit 658c6eb567
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1092,7 +1092,7 @@ public class TypeScriptClientCodegen extends AbstractTypeScriptClientCodegen imp
return; return;
} }
String[] parts = splitComposedType(type); String[] parts = splitComposedTypes(type);
for (String s : parts) { for (String s : parts) {
super.addImport(importsToBeAddedTo, s); super.addImport(importsToBeAddedTo, s);
} }
@ -1105,7 +1105,7 @@ public class TypeScriptClientCodegen extends AbstractTypeScriptClientCodegen imp
* @param type String with composed types * @param type String with composed types
* @return list of types * @return list of types
*/ */
protected String[] splitComposedType(String type) { protected String[] splitComposedTypes(String type) {
return type.replace(" ", "").split("[|&<>]"); return type.replace(" ", "").split("[|&<>]");
} }
} }