cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1390059 - /cxf/trunk/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/types/SchemaJavascriptBuilder.java
Date Tue, 25 Sep 2012 19:12:11 GMT
Author: dkulp
Date: Tue Sep 25 19:12:11 2012
New Revision: 1390059

URL: http://svn.apache.org/viewvc?rev=1390059&view=rev
Log:
[CXF-4507] Fix problem with null/empty array elements causing duplicate items in the array
Patch from Kayvan Arianpour applied

Modified:
    cxf/trunk/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/types/SchemaJavascriptBuilder.java

Modified: cxf/trunk/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/types/SchemaJavascriptBuilder.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/types/SchemaJavascriptBuilder.java?rev=1390059&r1=1390058&r2=1390059&view=diff
==============================================================================
--- cxf/trunk/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/types/SchemaJavascriptBuilder.java
(original)
+++ cxf/trunk/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/types/SchemaJavascriptBuilder.java
Tue Sep 25 19:12:11 2012
@@ -563,7 +563,7 @@ public class SchemaJavascriptBuilder {
                 utils.appendLine("item = [];");
                 utils.startDo();
                 valueTarget = "arrayItem";
-                utils.appendLine("var arrayItem;");
+                utils.appendLine("var arrayItem = null;");
             }
         }
 



Mime
View raw message