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


The following commit(s) were added to refs/heads/8.5.x by this push:
     new d579310  Code clean-up: Add braces for clarity
d579310 is described below

commit d579310e2d08d957454ffdda5b727a23f70d54bb
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon May 24 11:08:15 2021 +0100

    Code clean-up: Add braces for clarity
    
    Trivial commit to trigger a CI build to test CI changes
---
 java/javax/el/CompositeELResolver.java | 3 ++-
 java/javax/el/StandardELContext.java   | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/java/javax/el/CompositeELResolver.java 
b/java/javax/el/CompositeELResolver.java
index f28f528..1fc198a 100644
--- a/java/javax/el/CompositeELResolver.java
+++ b/java/javax/el/CompositeELResolver.java
@@ -198,8 +198,9 @@ public class CompositeELResolver extends ELResolver {
 
         @Override
         public boolean hasNext() {
-            if (this.next != null)
+            if (this.next != null) {
                 return true;
+            }
             if (this.itr != null) {
                 while (this.next == null && itr.hasNext()) {
                     this.next = itr.next();
diff --git a/java/javax/el/StandardELContext.java 
b/java/javax/el/StandardELContext.java
index d313483..dff329a 100644
--- a/java/javax/el/StandardELContext.java
+++ b/java/javax/el/StandardELContext.java
@@ -133,8 +133,9 @@ public class StandardELContext extends ELContext {
         @Override
         public ValueExpression setVariable(String variable,
                 ValueExpression expression) {
-            if (vars == null)
+            if (vars == null) {
                 vars = new HashMap<>();
+            }
             if (expression == null) {
                 return vars.remove(variable);
             } else {

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to