cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1162081 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/SourceGenerator.java
Date Fri, 26 Aug 2011 12:24:46 GMT
Author: sergeyb
Date: Fri Aug 26 12:24:46 2011
New Revision: 1162081

URL: http://svn.apache.org/viewvc?rev=1162081&view=rev
Log:
[CXF-3759] Fix for checking multiple response status codes

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

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/SourceGenerator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/SourceGenerator.java?rev=1162081&r1=1162080&r2=1162081&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/SourceGenerator.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/SourceGenerator.java
Fri Aug 26 12:24:46 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