cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1557774 - /cxf/trunk/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/JavaDocProvider.java
Date Mon, 13 Jan 2014 17:14:58 GMT
Author: sergeyb
Date: Mon Jan 13 17:14:57 2014
New Revision: 1557774

URL: http://svn.apache.org/r1557774
Log:
[CXF-5353] Minor update to get return info scraped up correctly for methods with no params

Modified:
    cxf/trunk/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/JavaDocProvider.java

Modified: cxf/trunk/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/JavaDocProvider.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/JavaDocProvider.java?rev=1557774&r1=1557773&r2=1557774&view=diff
==============================================================================
--- cxf/trunk/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/JavaDocProvider.java
(original)
+++ cxf/trunk/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/JavaDocProvider.java
Mon Jan 13 17:14:57 2014
@@ -181,9 +181,9 @@ public class JavaDocProvider implements 
             int operMarkerIndex = classDoc.getClassDoc().indexOf(operMarker);
             while (operMarkerIndex != -1) { 
                 int startOfOpSigIndex = operMarkerIndex + operMarker.length();
-                int endOfOpSigIndex = classDoc.getClassDoc().indexOf(")", operMarkerIndex);
+                int endOfOpSigIndex = classDoc.getClassDoc().indexOf(")", startOfOpSigIndex);
                 int paramLen = method.getParameterTypes().length;
-                if (endOfOpSigIndex == startOfOpSigIndex + 1 && paramLen == 0) {
+                if (endOfOpSigIndex == startOfOpSigIndex && paramLen == 0) {
                     break;
                 } else if (endOfOpSigIndex > startOfOpSigIndex + 1) {
                     String[] opBits = 



Mime
View raw message