fix gitee #I2C6N1
This commit is contained in:
parent
ddf15c0e28
commit
a0311c5362
|
@ -46,9 +46,13 @@ public class DocClassUtil {
|
||||||
* @return array of string
|
* @return array of string
|
||||||
*/
|
*/
|
||||||
public static String[] getSimpleGicName(String returnType) {
|
public static String[] getSimpleGicName(String returnType) {
|
||||||
if (JavaClassValidateUtil.isArray(returnType)) {
|
if (JavaClassValidateUtil.isCollection(returnType)) {
|
||||||
|
returnType = returnType + "<T>";
|
||||||
|
} else if (JavaClassValidateUtil.isArray(returnType)) {
|
||||||
returnType = returnType.substring(0, returnType.lastIndexOf("["));
|
returnType = returnType.substring(0, returnType.lastIndexOf("["));
|
||||||
returnType = "java.util.List<" + returnType + ">";
|
returnType = "java.util.List<" + returnType + ">";
|
||||||
|
} else if (JavaClassValidateUtil.isMap(returnType)) {
|
||||||
|
returnType = returnType + "<String,T>";
|
||||||
}
|
}
|
||||||
if (returnType.contains("<")) {
|
if (returnType.contains("<")) {
|
||||||
String pre = returnType.substring(0, returnType.indexOf("<"));
|
String pre = returnType.substring(0, returnType.indexOf("<"));
|
||||||
|
|
Loading…
Reference in New Issue