提交 4da2bb19 编写于 作者: F fw8899 提交者: Feng Wei

fix: #312

上级 354999c0
......@@ -59,6 +59,10 @@ public class PojoMustOverrideToStringRule extends AbstractPojoRule {
@Override
public Object visit(ASTClassOrInterfaceDeclaration node, Object data) {
if (node.isInterface()) {
return super.visit(node, data);
}
if (!isPojo(node)) {
return super.visit(node, data);
}
......
......@@ -132,4 +132,19 @@
<expected-problems>0</expected-problems>
<code-ref id="lombok-pojo-4" />
</test-code>
<!-- ====================================================================== -->
<code-fragment id="interface-with-pojo-surfix">
<![CDATA[
public interface FooDO {
}
]]>
</code-fragment>
<test-code>
<description>interface with POJO surfix</description>
<expected-problems>0</expected-problems>
<code-ref id="interface-with-pojo-surfix" />
</test-code>
</test-data>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册