From ecad8786affed5953b64739462ad4c25e82618f6 Mon Sep 17 00:00:00 2001 From: Aaron Hurst Date: Tue, 29 Nov 2022 00:25:02 +0000 Subject: [PATCH] Fix test failure due to incorrect case-sensitive identifier comparison. Change-Id: I232b8e7ad0ffc5f9ac8beab741e48d90b24063d4 --- .../sourceforge/pmd/lang/apex/ast/ASTReferenceExpression.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ASTReferenceExpression.java b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ASTReferenceExpression.java index cf3c8b5a52..e011a6faaa 100644 --- a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ASTReferenceExpression.java +++ b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ASTReferenceExpression.java @@ -56,7 +56,7 @@ public class ASTReferenceExpression extends AbstractApexNode.Many { } public boolean isSObjectType() { - return nodes.stream().anyMatch(id -> "sobjecttype".contentEquals(id.getString())); + return nodes.stream().anyMatch(id -> "sobjecttype".contentEquals(id.getString().toLowerCase())); } @Override