Fix the bug that ignore tag does not take effect
This commit is contained in:
parent
d837bfd77f
commit
2eb97081d2
|
@ -10,6 +10,7 @@
|
|||
4. 添加多层泛型嵌套的解析支持。gitee #I3T6UV .
|
||||
5. 修复父类是泛型时父类中LocalDateTime类型字段生成json样例错误。
|
||||
6. 添加将接口排序order推送到torna中。
|
||||
7. 修复类上的@ignore tag不生效bug.
|
||||
#### 版本号:2.1.8
|
||||
|
||||
- 更新日期: 2020-05-22
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue