update comments

This commit is contained in:
yusun4 2020-09-24 00:46:54 +08:00
parent b20e873422
commit ff98a95df3
2 changed files with 5 additions and 3 deletions

View File

@ -243,8 +243,9 @@ public class ParamsBuildHelper {
}
param.setType(DocGlobalConstants.ENUM);
}
String appendComment = "";
if (typeSimpleName.length() == 1 && displayActualType) {
comment = comment + "(" + JavaClassUtil.getClassSimpleName(subTypeName) + ")";
appendComment = " (ActualType: " + JavaClassUtil.getClassSimpleName(subTypeName) + ")";
}
//如果已经设置返回类型 不需要再次设置
if (param.getType() == null) {
@ -277,9 +278,9 @@ public class ParamsBuildHelper {
}
if (StringUtil.isNotEmpty(comment)) {
commonHandleParam(paramList, param, isRequired, comment, since, strRequired);
commonHandleParam(paramList, param, isRequired, comment + appendComment, since, strRequired);
} else {
commonHandleParam(paramList, param, isRequired, NO_COMMENTS_FOUND, since, strRequired);
commonHandleParam(paramList, param, isRequired, NO_COMMENTS_FOUND + appendComment, since, strRequired);
}
StringBuilder preBuilder = new StringBuilder();
for (int j = 0; j < level; j++) {

View File

@ -236,6 +236,7 @@ public class ApiConfig {
/**
* request ignore param
* @since 1.9.2
* @return
*/
private List<String> ignoreRequestParams;