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:
sgnl-labs 2024-07-13 05:36:28 -07:00 committed by GitHub
parent a395bd78c8
commit 2da3ac2cc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,7 +73,7 @@ public class ClassNamingConventionsRule extends AbstractNamingConventionsRule {
@Override
public Object visit(ASTUserInterface node, Object data) {
if(node.getParent() != null && node.getParent() instanceof ASTUserClassOrInterface) {
if (node.getParent() instanceof ASTUserClassOrInterface) {
checkMatches(INNER_INTERFACE_REGEX, node, data);
} else {
checkMatches(INTERFACE_REGEX, node, data);