Skip to content
Prev Previous commit
Next Next commit
add docs for splitComposedType
  • Loading branch information
ksvirkou-hubspot committed Feb 23, 2022
commit 664f5a640fe5f07302e79859e9d5ee38ea4617f3
Original file line number Diff line number Diff line change
Expand Up @@ -1589,8 +1589,15 @@ protected void addImport(Set<String> importsToBeAddedTo, String type) {
}
}

protected String[] splitComposedType (String name) {
return name.replace(" ","").split("[|&<>]");
/**
* Split composed types
* e.g. TheFirstType | TheSecondType to TheFirstType and TheSecondType
*
* @param String with composed types
* @return list of types
*/
protected String[] splitComposedType(String type) {
return type.replace(" ","").split("[|&<>]");
}

@Override
Expand Down