From 2da3ac2cc877aad31474a18e7a4c52ecd514d293 Mon Sep 17 00:00:00 2001 From: sgnl-labs Date: Sat, 13 Jul 2024 05:36:28 -0700 Subject: [PATCH] Update pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/codestyle/ClassNamingConventionsRule.java Co-authored-by: Andreas Dangel --- .../lang/apex/rule/codestyle/ClassNamingConventionsRule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/codestyle/ClassNamingConventionsRule.java b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/codestyle/ClassNamingConventionsRule.java index 5685695742..57fd2e7141 100644 --- a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/codestyle/ClassNamingConventionsRule.java +++ b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/codestyle/ClassNamingConventionsRule.java @@ -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);