fix pmd violation

This commit is contained in:
Artem Krosheninnikov
2020-05-13 02:05:27 +03:00
parent d349d66696
commit 8b5be784fd

View File

@ -14,7 +14,7 @@ public class JUnitSpellingRule extends AbstractJUnitRule {
@Override @Override
public Object visit(ASTMethodDeclaration node, Object data) { public Object visit(ASTMethodDeclaration node, Object data) {
ASTCompilationUnit acu = node.getFirstParentOfType(ASTCompilationUnit.class); ASTCompilationUnit acu = node.getFirstParentOfType(ASTCompilationUnit.class);
if (isJUnit5Class(acu) || (isJUnit4Class(acu))) { if (isJUnit5Class(acu) || isJUnit4Class(acu)) {
return super.visit(node, data); return super.visit(node, data);
} }