cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1148257 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/SourceGenerator.java
Date Tue, 19 Jul 2011 09:39:57 GMT
Author: ay
Date: Tue Jul 19 09:39:56 2011
New Revision: 1148257

URL: http://svn.apache.org/viewvc?rev=1148257&view=rev
Log:
build fix for jaxrs/ext/codegen/SourceGenerator

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=1148257&r1=1148256&r2=1148257&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
Tue Jul 19 09:39:56 2011
@@ -583,7 +583,7 @@ public class SourceGenerator {
                 for (int i = 0; i < responseEls.size(); i++) {
                     String statusValue = responseEls.get(0).getAttribute("status");
                     try {
-                        int status = statusValue.isEmpty() ? 200 : Integer.valueOf(statusValue);
+                        int status = statusValue.length() == 0 ? 200 : Integer.valueOf(statusValue);
                         if (status == 200) {
                             okResponse = responseEls.get(i);
                             break;



Mime
View raw message