cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [04/21] cxf git commit: using a diff operator in JavaScript type checks, patch from jlast applied, This closes #127
Date Fri, 22 Apr 2016 02:13:12 GMT
using a diff operator in JavaScript type checks, patch from jlast applied, This closes #127


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/ee2fb98a
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/ee2fb98a
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/ee2fb98a

Branch: refs/heads/master-jaxrs-2.1
Commit: ee2fb98a98ad0e219fb95343400cb4624a1983e1
Parents: a9d9045
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Tue Apr 19 12:21:27 2016 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Tue Apr 19 12:21:27 2016 +0100

----------------------------------------------------------------------
 .../org/apache/cxf/javascript/types/SchemaJavascriptBuilder.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/ee2fb98a/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/types/SchemaJavascriptBuilder.java
----------------------------------------------------------------------
diff --git a/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/types/SchemaJavascriptBuilder.java
b/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/types/SchemaJavascriptBuilder.java
index f13a51d..04d014c 100755
--- a/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/types/SchemaJavascriptBuilder.java
+++ b/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/types/SchemaJavascriptBuilder.java
@@ -304,7 +304,7 @@ public class SchemaJavascriptBuilder {
         code.append("//\n");
         code.append("function " + functionName + "(cxfjsutils, elementName, extraNamespaces)
{\n");
         utils.startXmlStringAccumulator("xml");
-        utils.startIf("elementName != null");
+        utils.startIf("elementName !== null");
         utils.appendString("<");
         utils.appendExpression("elementName");
         // now add any accumulated namespaces.
@@ -321,7 +321,7 @@ public class SchemaJavascriptBuilder {
         utils.appendString(">");
         utils.endBlock();
         code.append(bodyCode);
-        utils.startIf("elementName != null");
+        utils.startIf("elementName !== null");
         utils.appendString("</");
         utils.appendExpression("elementName");
         utils.appendString(">");


Mime
View raw message