cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject [1/2] cxf git commit: using a diff operator in JavaScript type checks, patch from jlast applied, This closes #127
Date Tue, 19 Apr 2016 11:57:54 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes a3e300f5f -> 7f771258b


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

Branch: refs/heads/3.0.x-fixes
Commit: e639ef25dfc5c6202f312a60f9731db07adaf5ad
Parents: a3e300f
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:25:25 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/e639ef25/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