Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fw8899 committed Jun 12, 2018
1 parent 354999c commit 4da2bb1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 4da2bb1

Please sign in to comment.