cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1099767 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProvider.java
Date Thu, 05 May 2011 12:26:53 GMT
Author: sergeyb
Date: Thu May  5 12:26:53 2011
New Revision: 1099767

URL: http://svn.apache.org/viewvc?rev=1099767&view=rev
Log:
[CXF-3490] Related update to CodeGeneratorProvider

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProvider.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProvider.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProvider.java?rev=1099767&r1=1099766&r2=1099767&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProvider.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProvider.java
Thu May  5 12:26:53 2011
@@ -647,6 +647,10 @@ public class CodeGeneratorProvider imple
                 : PARAM_ANNOTATIONS.get(paramEl.getAttribute("style"));
             writeAnnotation(sbCode, imports, paramAnnotation, name, false, false);
             String type = getPrimitiveType(paramEl);
+            if (Boolean.valueOf(paramEl.getAttribute("repeating"))) {
+                addImport(imports, List.class.getName());
+                type = "List<" + type + ">";
+            }
             sbCode.append(" ").append(type).append(" ").append(name.replace('.', '_'));
             if (i + 1 < inParamEls.size()) {
                 sbCode.append(", ");



Mime
View raw message