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 2f45095918cd7ad6b09a10863c3ebbcfad454cc2 Author: Gary Gregory <[email protected]> AuthorDate: Tue May 21 13:30:25 2024 -0400 Fix PM AvoidReassigningParameters --- src/main/java/org/apache/commons/jexl3/internal/Engine32.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/jexl3/internal/Engine32.java b/src/main/java/org/apache/commons/jexl3/internal/Engine32.java index e5c0c4bc..14199c38 100644 --- a/src/main/java/org/apache/commons/jexl3/internal/Engine32.java +++ b/src/main/java/org/apache/commons/jexl3/internal/Engine32.java @@ -46,7 +46,8 @@ public class Engine32 extends Engine { * @param node the node * @return true if node is navigation-safe, false otherwise */ - static boolean isTernaryProtected(final Interpreter ii, JexlNode node) { + static boolean isTernaryProtected(final Interpreter ii, final JexlNode startNode) { + JexlNode node = startNode; for (JexlNode walk = node.jjtGetParent(); walk != null; walk = walk.jjtGetParent()) { // protect only the condition part of the ternary if (walk instanceof ASTTernaryNode
