This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 570842358a1832f02039bbd361b12a0615f31cb5 Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Sep 17 20:36:56 2020 +0100 Refactor for Java 7 --- java/javax/el/ELContext.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/java/javax/el/ELContext.java b/java/javax/el/ELContext.java index 58c5db5..d33d8b3 100644 --- a/java/javax/el/ELContext.java +++ b/java/javax/el/ELContext.java @@ -158,7 +158,11 @@ public abstract class ELContext { * @since EL 3.0 */ public List<EvaluationListener> getEvaluationListeners() { - return listeners == null ? Collections.emptyList() : listeners; + if (listeners == null) { + return Collections.emptyList(); + } else { + return listeners; + } } /** --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org