cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1162084 - in /cxf/branches/2.4.x-fixes: ./ rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/SourceGenerator.java
Date Fri, 26 Aug 2011 12:26:14 GMT
Author: sergeyb
Date: Fri Aug 26 12:26:14 2011
New Revision: 1162084

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

........
  r1162081 | sergeyb | 2011-08-26 13:24:46 +0100 (Fri, 26 Aug 2011) | 1 line
  
  [CXF-3759] Fix for checking multiple response status codes
........

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

Propchange: cxf/branches/2.4.x-fixes/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Fri Aug 26 12:26:14 2011
@@ -1 +1 @@
-/cxf/trunk:1161592,1162074
+/cxf/trunk:1161592,1162074,1162081

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

Modified: cxf/branches/2.4.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/SourceGenerator.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/SourceGenerator.java?rev=1162084&r1=1162083&r2=1162084&view=diff
==============================================================================
--- cxf/branches/2.4.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/SourceGenerator.java
(original)
+++ cxf/branches/2.4.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/SourceGenerator.java
Fri Aug 26 12:26:14 2011
@@ -581,7 +581,7 @@ public class SourceGenerator {
             Element okResponse = null;
             if (responseEls.size() > 1) {
                 for (int i = 0; i < responseEls.size(); i++) {
-                    String statusValue = responseEls.get(0).getAttribute("status");
+                    String statusValue = responseEls.get(i).getAttribute("status");
                     try {
                         int status = statusValue.length() == 0 ? 200 : Integer.valueOf(statusValue);
                         if (status == 200) {



Mime
View raw message