myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject [myfaces] branch master updated: refactored
Date Sat, 10 Aug 2019 16:14:22 GMT
This is an automated email from the ASF dual-hosted git repository.

tandraschko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/master by this push:
     new e6b1e79  refactored
e6b1e79 is described below

commit e6b1e796991895c1a13f30a9b5ae96cf860754ec
Author: Thomas Andraschko <tandraschko@apache.org>
AuthorDate: Sat Aug 10 18:14:21 2019 +0200

    refactored
---
 impl/src/main/java/org/apache/myfaces/context/flash/FlashImpl.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/impl/src/main/java/org/apache/myfaces/context/flash/FlashImpl.java b/impl/src/main/java/org/apache/myfaces/context/flash/FlashImpl.java
index 8414db6..adac8cb 100644
--- a/impl/src/main/java/org/apache/myfaces/context/flash/FlashImpl.java
+++ b/impl/src/main/java/org/apache/myfaces/context/flash/FlashImpl.java
@@ -43,6 +43,7 @@ import javax.faces.event.PreClearFlashEvent;
 import javax.faces.event.PreRemoveFlashValueEvent;
 import javax.faces.lifecycle.ClientWindow;
 import org.apache.myfaces.config.MyfacesConfig;
+import org.apache.myfaces.util.lang.StringUtils;
 import org.apache.myfaces.util.token.TokenGenerator;
 
 /**
@@ -1159,8 +1160,7 @@ public class FlashImpl extends Flash implements ReleasableFlash
     private String _getCookiePath(ExternalContext externalContext)
     {
         String contextPath = externalContext.getRequestContextPath();
-
-        if (contextPath == null || contextPath.isEmpty())
+        if (StringUtils.isEmpty(contextPath))
         {
             contextPath = "/";
         }


Mime
View raw message