forked from phoedos/pmd
Update pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/codestyle/ClassNamingConventionsRule.java
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
This commit is contained in:
parent
5f669fca31
commit
f0a5930a40
@ -58,7 +58,7 @@ public class ClassNamingConventionsRule extends AbstractNamingConventionsRule {
|
||||
|
||||
@Override
|
||||
public Object visit(ASTUserClass node, Object data) {
|
||||
if(node.getParent() != null && node.getParent() instanceof ASTUserClass) {
|
||||
if (node.getParent() instanceof ASTUserClass) {
|
||||
checkMatches(INNER_CLASS_REGEX, node, data);
|
||||
} else if (node.getModifiers().isTest()) {
|
||||
checkMatches(TEST_CLASS_REGEX, node, data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user