From 8b5be784fd34a6af8c530af8eebdc671dcfd3977 Mon Sep 17 00:00:00 2001 From: Artem Krosheninnikov Date: Wed, 13 May 2020 02:05:27 +0300 Subject: [PATCH] fix pmd violation --- .../pmd/lang/java/rule/errorprone/JUnitSpellingRule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/errorprone/JUnitSpellingRule.java b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/errorprone/JUnitSpellingRule.java index 613ab68f36..de5399c7e7 100644 --- a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/errorprone/JUnitSpellingRule.java +++ b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/errorprone/JUnitSpellingRule.java @@ -14,7 +14,7 @@ public class JUnitSpellingRule extends AbstractJUnitRule { @Override public Object visit(ASTMethodDeclaration node, Object data) { ASTCompilationUnit acu = node.getFirstParentOfType(ASTCompilationUnit.class); - if (isJUnit5Class(acu) || (isJUnit4Class(acu))) { + if (isJUnit5Class(acu) || isJUnit4Class(acu)) { return super.visit(node, data); }