camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/2] camel git commit: CAMEL-7999: apt plugin should generate component properties also, which currently are assumed as getter/setter pairs as we do not have annotations for those.
Date Sat, 07 Feb 2015 08:31:58 GMT
Repository: camel
Updated Branches:
  refs/heads/master 2a488deee -> 88f6c1e52


CAMEL-7999: apt plugin should generate component properties also, which currently are assumed
as getter/setter pairs as we do not have annotations for those.


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

Branch: refs/heads/master
Commit: aae095f52c5560673a397ac9262b1c7ef4172034
Parents: 2a488de
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sat Feb 7 09:22:46 2015 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sat Feb 7 09:22:46 2015 +0100

----------------------------------------------------------------------
 .../org/apache/camel/tools/apt/AbstractAnnotationProcessor.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/aae095f5/tooling/apt/src/main/java/org/apache/camel/tools/apt/AbstractAnnotationProcessor.java
----------------------------------------------------------------------
diff --git a/tooling/apt/src/main/java/org/apache/camel/tools/apt/AbstractAnnotationProcessor.java
b/tooling/apt/src/main/java/org/apache/camel/tools/apt/AbstractAnnotationProcessor.java
index ed1bf94..71c9a6f 100644
--- a/tooling/apt/src/main/java/org/apache/camel/tools/apt/AbstractAnnotationProcessor.java
+++ b/tooling/apt/src/main/java/org/apache/camel/tools/apt/AbstractAnnotationProcessor.java
@@ -66,8 +66,8 @@ public abstract class AbstractAnnotationProcessor extends AbstractProcessor
{
             // lets find the getter
             if (answer == null) {
                 ExecutableElement getter = findGetter(fieldName, classElement);
-                if (setter != null) {
-                    String doc = elementUtils.getDocComment(setter);
+                if (getter != null) {
+                    String doc = elementUtils.getDocComment(getter);
                     if (!isNullOrEmpty(doc)) {
                         answer = doc;
                     }


Mime
View raw message