camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject camel git commit: CAMEL-7999: apt should define kind as expression if its a such type.
Date Fri, 23 Jan 2015 13:47:53 GMT
Repository: camel
Updated Branches:
  refs/heads/master e99d166a3 -> cb5237aba


 CAMEL-7999: apt should define kind as expression if its a such type.


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

Branch: refs/heads/master
Commit: cb5237abaff54b13eeaa7f83659500a0928d22a6
Parents: e99d166
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Fri Jan 23 14:47:45 2015 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Fri Jan 23 14:47:45 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/camel/blob/cb5237ab/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 51e9bb8..6b98ac0 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
@@ -399,8 +399,9 @@ public class EipAnnotationProcessor extends AbstractAnnotationProcessor
{
             Set<String> oneOfTypes = new TreeSet<String>();
             boolean isOneOf = ONE_OF_TYPE_NAME.equals(fieldTypeName);
             if (isOneOf) {
-                // okay its actually an expression
+                // okay its actually an language expression, so favor using that in the eip
option
                 kind = "expression";
+                fieldTypeName = ONE_OF_LANGUAGES;
                 TypeElement languages = findTypeElement(roundEnv, ONE_OF_LANGUAGES);
                 String superClassName = canonicalClassName(languages.toString());
                 // find all classes that has that superClassName


Mime
View raw message