cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: using a diff operator in JavaScript type checks, patch from jlast applied, This closes #127
Date Tue, 19 Apr 2016 11:23:42 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 7e5efb29a -> 97191b69a


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/97191b69
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/97191b69
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/97191b69

Branch: refs/heads/3.1.x-fixes
Commit: 97191b69ac1dd2bc0231f053eea253e30516a759
Parents: 7e5efb2
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:23:04 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/97191b69/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