This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit d74158a9cbda9e900d98b87eb0f6a03cfcfa481a Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Sep 26 16:45:37 2024 +0100 Code clean-up - no fucntional change --- java/org/apache/el/parser/AstAbstractEmpty.java | 3 +++ java/org/apache/el/parser/AstEmpty.java | 1 + java/org/apache/el/parser/AstNotEmpty.java | 1 + 3 files changed, 5 insertions(+) diff --git a/java/org/apache/el/parser/AstAbstractEmpty.java b/java/org/apache/el/parser/AstAbstractEmpty.java index 58577fe267..03945daa6f 100644 --- a/java/org/apache/el/parser/AstAbstractEmpty.java +++ b/java/org/apache/el/parser/AstAbstractEmpty.java @@ -27,6 +27,7 @@ import org.apache.el.lang.EvaluationContext; public abstract class AstAbstractEmpty extends SimpleNode { private final Boolean RETURN_EMPTY; + private final Boolean RETURN_NOT_EMPTY; @@ -41,11 +42,13 @@ public abstract class AstAbstractEmpty extends SimpleNode { } } + @Override public Class<?> getType(EvaluationContext ctx) throws ELException { return Boolean.class; } + @Override public Object getValue(EvaluationContext ctx) throws ELException { Object obj = this.children[0].getValue(ctx); diff --git a/java/org/apache/el/parser/AstEmpty.java b/java/org/apache/el/parser/AstEmpty.java index 0517091b9c..43289cb638 100644 --- a/java/org/apache/el/parser/AstEmpty.java +++ b/java/org/apache/el/parser/AstEmpty.java @@ -18,6 +18,7 @@ package org.apache.el.parser; public final class AstEmpty extends AstAbstractEmpty { + public AstEmpty(int id) { super(id, false); } diff --git a/java/org/apache/el/parser/AstNotEmpty.java b/java/org/apache/el/parser/AstNotEmpty.java index 0066c07afb..54f47a88a0 100644 --- a/java/org/apache/el/parser/AstNotEmpty.java +++ b/java/org/apache/el/parser/AstNotEmpty.java @@ -18,6 +18,7 @@ package org.apache.el.parser; public final class AstNotEmpty extends AstAbstractEmpty { + public AstNotEmpty(int id) { super(id, true); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org