camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [3/6] camel git commit: Fixed missing docs in rest model in the catalog
Date Thu, 08 Oct 2015 08:40:01 GMT
Fixed missing docs in rest model in the catalog


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

Branch: refs/heads/master
Commit: 3ebec43350e895374c53585d955d567040b24e69
Parents: e603960
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Thu Oct 8 10:41:27 2015 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Thu Oct 8 10:41:27 2015 +0200

----------------------------------------------------------------------
 .../org/apache/camel/tools/apt/EipAnnotationProcessor.java    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/3ebec433/tooling/apt/src/main/java/org/apache/camel/tools/apt/EipAnnotationProcessor.java
----------------------------------------------------------------------
diff --git a/tooling/apt/src/main/java/org/apache/camel/tools/apt/EipAnnotationProcessor.java
b/tooling/apt/src/main/java/org/apache/camel/tools/apt/EipAnnotationProcessor.java
index 8a7d01f..d9aca0a 100644
--- a/tooling/apt/src/main/java/org/apache/camel/tools/apt/EipAnnotationProcessor.java
+++ b/tooling/apt/src/main/java/org/apache/camel/tools/apt/EipAnnotationProcessor.java
@@ -712,6 +712,9 @@ public class EipAnnotationProcessor extends AbstractAnnotationProcessor
{
      */
     private void processVerbs(RoundEnvironment roundEnv, TypeElement originalClassType, XmlElementRef
elementRef,
                               VariableElement fieldElement, String fieldName, Set<EipOption>
eipOptions, String prefix) {
+
+        Elements elementUtils = processingEnv.getElementUtils();
+
         if ("verbs".equals(fieldName) && supportOutputs(originalClassType)) {
             String kind = "element";
             String name = elementRef.name();
@@ -722,6 +725,8 @@ public class EipAnnotationProcessor extends AbstractAnnotationProcessor
{
             TypeMirror fieldType = fieldElement.asType();
             String fieldTypeName = fieldType.toString();
 
+            String docComment = findJavaDoc(elementUtils, fieldElement, fieldName, name,
originalClassType, true);
+
             // gather oneOf which extends any of the output base classes
             Set<String> oneOfTypes = new TreeSet<String>();
             // find all classes that has that superClassName
@@ -739,7 +744,7 @@ public class EipAnnotationProcessor extends AbstractAnnotationProcessor
{
                 }
             }
 
-            EipOption ep = new EipOption(name, kind, fieldTypeName, true, "", "", false,
false, null, true, oneOfTypes);
+            EipOption ep = new EipOption(name, kind, fieldTypeName, true, "", docComment,
false, false, null, true, oneOfTypes);
             eipOptions.add(ep);
         }
     }


Mime
View raw message