This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jexl.git

commit 978f23d18f4bf96aa3bfc7c8f81e686c452c2462
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Jun 1 10:20:56 2024 -0400

    Remove redundant keyword
---
 src/main/java/org/apache/commons/jexl3/parser/JexlNode.java | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/main/java/org/apache/commons/jexl3/parser/JexlNode.java 
b/src/main/java/org/apache/commons/jexl3/parser/JexlNode.java
index 1c5d0db3..5b3ee88a 100644
--- a/src/main/java/org/apache/commons/jexl3/parser/JexlNode.java
+++ b/src/main/java/org/apache/commons/jexl3/parser/JexlNode.java
@@ -185,9 +185,9 @@ public abstract class JexlNode extends SimpleNode {
         if (this instanceof ASTIdentifier) {
             return ((ASTIdentifier) this).getSymbol() < 0;
         }
-        final int nc = this.jjtGetNumChildren() - 1;
+        final int nc = jjtGetNumChildren() - 1;
         if (nc >= 0) {
-            final JexlNode first = this.jjtGetChild(0);
+            final JexlNode first = jjtGetChild(0);
             return first.isGlobalVar();
         }
         if (jjtGetParent() instanceof ASTReference) {
@@ -228,13 +228,13 @@ public abstract class JexlNode extends SimpleNode {
             return jjtGetChild(0).isSafeLhs(safe);
         }
         if (this instanceof ASTMethodNode) {
-            if (this.jjtGetNumChildren() > 1
-                    && this.jjtGetChild(0) instanceof ASTIdentifierAccess
-                    && (((ASTIdentifierAccess) this.jjtGetChild(0)).isSafe() 
|| safe)) {
+            if (jjtGetNumChildren() > 1
+                    && jjtGetChild(0) instanceof ASTIdentifierAccess
+                    && (((ASTIdentifierAccess) jjtGetChild(0)).isSafe() || 
safe)) {
                 return true;
             }
         }
-        final JexlNode parent = this.jjtGetParent();
+        final JexlNode parent = jjtGetParent();
         if (parent == null) {
             return false;
         }

Reply via email to