cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-6933] Correctly processing docs with the same target, patch from Mike Golod applied with thanks, This closes #141
Date Mon, 06 Jun 2016 20:50:52 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes c0ad4d310 -> 89618739e


[CXF-6933] Correctly processing docs with the same target, patch from Mike Golod applied with
thanks, This closes #141


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/89618739
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/89618739
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/89618739

Branch: refs/heads/3.1.x-fixes
Commit: 89618739e5abde25d416c49c76e7cad924c32344
Parents: c0ad4d3
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Mon Jun 6 21:49:25 2016 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Jun 6 21:50:31 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/89618739/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
----------------------------------------------------------------------
diff --git a/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
b/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
index 14d323b..17b745f 100644
--- a/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
+++ b/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
@@ -1743,6 +1743,7 @@ public class WadlGenerator implements ContainerRequestFilter {
                               String category, 
                               boolean allowDefault,
                               boolean isJson) {
+        boolean found = false;
         for (Annotation a : anns) {
             if (a.annotationType() == Descriptions.class) {
                 Descriptions ds = (Descriptions)a;
@@ -1781,10 +1782,10 @@ public class WadlGenerator implements ContainerRequestFilter {
                     }
                 }
                 sb.append("</doc>");
-                return true;
+                found = true;
             }
         }
-        return false;
+        return found;
     }
 
     private String getNamespace() {


Mime
View raw message