cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1099768 - in /cxf/branches/2.3.x-fixes: ./ rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProvider.java
Date Thu, 05 May 2011 12:29:52 GMT
Author: sergeyb
Date: Thu May  5 12:29:52 2011
New Revision: 1099768

URL: http://svn.apache.org/viewvc?rev=1099768&view=rev
Log:
Merged revisions 1099767 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1099767 | sergeyb | 2011-05-05 13:26:53 +0100 (Thu, 05 May 2011) | 1 line
  
  [CXF-3490] Related update to CodeGeneratorProvider
........

Modified:
    cxf/branches/2.3.x-fixes/   (props changed)
    cxf/branches/2.3.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProvider.java

Propchange: cxf/branches/2.3.x-fixes/
------------------------------------------------------------------------------
    svn:mergeinfo = /cxf/trunk:1099767

Propchange: cxf/branches/2.3.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.3.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProvider.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.3.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProvider.java?rev=1099768&r1=1099767&r2=1099768&view=diff
==============================================================================
--- cxf/branches/2.3.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProvider.java
(original)
+++ cxf/branches/2.3.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProvider.java
Thu May  5 12:29:52 2011
@@ -646,6 +646,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