fix ApiDataBuilder Repeat call

This commit is contained in:
shalousun 2021-05-22 17:14:05 +08:00
parent e6069fc911
commit 9d957ef62e
1 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ public class ApiDataBuilder {
* @return List of ApiDoc
*/
public static ApiAllData getApiData(ApiConfig config) {
return getApiData(config, false);
return getApiData(config, Boolean.FALSE);
}
/**
@ -49,7 +49,7 @@ public class ApiDataBuilder {
* @return List of ApiDoc
*/
public static ApiAllData getApiDataTree(ApiConfig config) {
return getApiData(config, true);
return getApiData(config, Boolean.TRUE);
}
private static ApiAllData getApiData(ApiConfig config, boolean toTree) {
@ -57,7 +57,7 @@ public class ApiDataBuilder {
DocBuilderTemplate builderTemplate = new DocBuilderTemplate();
builderTemplate.checkAndInitForGetApiData(config);
JavaProjectBuilder javaProjectBuilder = new JavaProjectBuilder();
builderTemplate.getApiData(config, javaProjectBuilder);
return builderTemplate.getApiData(config, javaProjectBuilder);
ApiAllData apiAllData = builderTemplate.getApiData(config, javaProjectBuilder);
return apiAllData;
}
}