cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject svn commit: r1857505 - /cocoon/trunk/blocks/cocoon-session-fw/cocoon-session-fw-impl/src/main/java/org/apache/cocoon/webapps/session/transformation/SessionPostTransformer.java
Date Sun, 14 Apr 2019 05:36:41 GMT
Author: ilgrosso
Date: Sun Apr 14 05:36:41 2019
New Revision: 1857505

URL: http://svn.apache.org/viewvc?rev=1857505&view=rev
Log:
This closes #8 - thanks @bd2019us

Modified:
    cocoon/trunk/blocks/cocoon-session-fw/cocoon-session-fw-impl/src/main/java/org/apache/cocoon/webapps/session/transformation/SessionPostTransformer.java

Modified: cocoon/trunk/blocks/cocoon-session-fw/cocoon-session-fw-impl/src/main/java/org/apache/cocoon/webapps/session/transformation/SessionPostTransformer.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-session-fw/cocoon-session-fw-impl/src/main/java/org/apache/cocoon/webapps/session/transformation/SessionPostTransformer.java?rev=1857505&r1=1857504&r2=1857505&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-session-fw/cocoon-session-fw-impl/src/main/java/org/apache/cocoon/webapps/session/transformation/SessionPostTransformer.java
(original)
+++ cocoon/trunk/blocks/cocoon-session-fw/cocoon-session-fw-impl/src/main/java/org/apache/cocoon/webapps/session/transformation/SessionPostTransformer.java
Sun Apr 14 05:36:41 2019
@@ -20,6 +20,7 @@ import java.io.ByteArrayInputStream;
 import java.io.IOException;
 import java.util.Map;
 import java.util.Properties;
+import java.util.Objects;
 
 import javax.servlet.http.HttpSession;
 import javax.xml.transform.OutputKeys;
@@ -320,7 +321,7 @@ public class SessionPostTransformer exte
             }
             DocumentFragment validationDoc = this.endRecording();
             String source = (String)stack.pop();
-            if (!source.equals("EMPTY")) {
+            if (!Objects.equals(source, "EMPTY")) {
                 // get configuration from external file
                 // referenced by "src" attribute of "validate" element
                 try {



Mime
View raw message