format code
This commit is contained in:
parent
2ec24e30fe
commit
2165220b4c
|
@ -42,7 +42,6 @@ import java.util.*;
|
|||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static com.power.doc.constants.DocGlobalConstants.JAVA_LIST_FULLY;
|
||||
import static com.power.doc.constants.DocTags.DEPRECATED;
|
||||
import static com.power.doc.constants.DocTags.IGNORE;
|
||||
|
||||
|
@ -188,7 +187,7 @@ public class RpcDocBuildTemplate implements IDocBuildTemplate<RpcApiDoc> {
|
|||
List<JavaAnnotation> annotations = parameter.getAnnotations();
|
||||
List<String> groupClasses = JavaClassUtil.getParamGroupJavaClass(annotations);
|
||||
if (JavaClassValidateUtil.isCollection(fullTypeName) || JavaClassValidateUtil.isArray(fullTypeName)) {
|
||||
if(JavaClassValidateUtil.isCollection(typeName)){
|
||||
if (JavaClassValidateUtil.isCollection(typeName)) {
|
||||
typeName = typeName + "<T>";
|
||||
}
|
||||
String[] gicNameArr = DocClassUtil.getSimpleGicName(typeName);
|
||||
|
|
|
@ -305,7 +305,8 @@ public class SpringBootDocBuildTemplate implements IDocBuildTemplate<ApiDoc> {
|
|||
JavaClass javaClass = configBuilder.getJavaProjectBuilder().getClassByName(typeName);
|
||||
String[] globGicName = DocClassUtil.getSimpleGicName(gicTypeName);
|
||||
String comment = this.paramCommentResolve(paramsComments.get(paramName));
|
||||
String mockValue = createMockValue(paramsComments, paramName, typeName, simpleTypeName);;
|
||||
String mockValue = createMockValue(paramsComments, paramName, typeName, simpleTypeName);
|
||||
;
|
||||
if (requestFieldToUnderline) {
|
||||
paramName = StringUtil.camelToUnderline(paramName);
|
||||
}
|
||||
|
@ -483,7 +484,6 @@ public class SpringBootDocBuildTemplate implements IDocBuildTemplate<ApiDoc> {
|
|||
}
|
||||
|
||||
|
||||
|
||||
private ApiMethodReqParam requestParams(final DocJavaMethod docJavaMethod, ProjectDocConfigBuilder builder) {
|
||||
JavaMethod javaMethod = docJavaMethod.getJavaMethod();
|
||||
boolean isStrict = builder.getApiConfig().isStrict();
|
||||
|
@ -607,7 +607,7 @@ public class SpringBootDocBuildTemplate implements IDocBuildTemplate<ApiDoc> {
|
|||
queryParam = true;
|
||||
}
|
||||
if (JavaClassValidateUtil.isCollection(fullTypeName) || JavaClassValidateUtil.isArray(fullTypeName)) {
|
||||
if(JavaClassValidateUtil.isCollection(typeName)){
|
||||
if (JavaClassValidateUtil.isCollection(typeName)) {
|
||||
typeName = typeName + "<T>";
|
||||
}
|
||||
String[] gicNameArr = DocClassUtil.getSimpleGicName(typeName);
|
||||
|
|
Loading…
Reference in New Issue