Fix the bug that ignore tag does not take effect

This commit is contained in:
shalousun 2021-05-30 15:09:43 +08:00
parent d837bfd77f
commit 2eb97081d2
3 changed files with 5 additions and 3 deletions

View File

@ -10,6 +10,7 @@
4. 添加多层泛型嵌套的解析支持。gitee #I3T6UV .
5. 修复父类是泛型时父类中LocalDateTime类型字段生成json样例错误。
6. 添加将接口排序order推送到torna中。
7. 修复类上的@ignore tag不生效bug.
#### 版本号2.1.8
- 更新日期: 2020-05-22

View File

@ -70,7 +70,8 @@ public class RpcDocBuildTemplate implements IDocBuildTemplate<RpcApiDoc> {
continue;
}
}
if (!checkDubboInterface(cls)) {
DocletTag ignoreTag = cls.getTagByName(DocTags.IGNORE);
if (!checkDubboInterface(cls)|| Objects.nonNull(ignoreTag)) {
continue;
}
String strOrder = JavaClassUtil.getClassTagsValue(cls, DocTags.ORDER, Boolean.TRUE);

View File

@ -75,8 +75,8 @@ public class SpringBootDocBuildTemplate implements IDocBuildTemplate<ApiDoc> {
continue;
}
}
String ignoreTag = JavaClassUtil.getClassTagsValue(cls, DocTags.IGNORE, Boolean.FALSE);
if (!checkController(cls) || StringUtil.isNotEmpty(ignoreTag)) {
DocletTag ignoreTag = cls.getTagByName(DocTags.IGNORE);
if (!checkController(cls) || Objects.nonNull(ignoreTag)) {
continue;
}
String strOrder = JavaClassUtil.getClassTagsValue(cls, DocTags.ORDER, Boolean.TRUE);