You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/08/15 07:31:15 UTC

[camel] branch master updated: Include missing doc for an attribute in xml dsl

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new bc33191  Include missing doc for an attribute in xml dsl
bc33191 is described below

commit bc33191c9a34de25e41793eec57d4a9a9863193f
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Aug 15 09:31:00 2019 +0200

    Include missing doc for an attribute in xml dsl
---
 .../apache/camel/tools/apt/SpringAnnotationProcessorHelper.java    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tooling/apt/src/main/java/org/apache/camel/tools/apt/SpringAnnotationProcessorHelper.java b/tooling/apt/src/main/java/org/apache/camel/tools/apt/SpringAnnotationProcessorHelper.java
index 75f3110..3706c68 100644
--- a/tooling/apt/src/main/java/org/apache/camel/tools/apt/SpringAnnotationProcessorHelper.java
+++ b/tooling/apt/src/main/java/org/apache/camel/tools/apt/SpringAnnotationProcessorHelper.java
@@ -252,7 +252,12 @@ public class SpringAnnotationProcessorHelper {
         TypeElement fieldTypeElement = findTypeElement(processingEnv, roundEnv, fieldTypeName);
 
         String defaultValue = findDefaultValue(fieldElement, fieldTypeName);
-        String docComment = findJavaDoc(elementUtils, fieldElement, fieldName, name, classElement, true);
+        String docComment;
+        if ("mdcLoggingKeysPattern".equals(fieldName)) {
+            docComment = findJavaDoc(elementUtils, fieldElement, "MDCLoggingKeysPattern", name, classElement, true);
+        } else {
+            docComment = findJavaDoc(elementUtils, fieldElement, fieldName, name, classElement, true);
+        }
         if (isNullOrEmpty(docComment)) {
             Metadata metadata = fieldElement.getAnnotation(Metadata.class);
             docComment = metadata != null ? metadata.description() : null;