camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject [25/27] camel git commit: Apt plugin do not scan JDK classes.
Date Mon, 28 Mar 2016 10:31:11 GMT
Apt plugin do not scan JDK classes.


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

Branch: refs/heads/jdk8-lambdas
Commit: 95d15316d9c679a27d494d1febf60dfcb3c076a4
Parents: bf6d63a
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Mon Mar 28 07:53:41 2016 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Mon Mar 28 07:53:41 2016 +0200

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


http://git-wip-us.apache.org/repos/asf/camel/blob/95d15316/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 c5af901..9250196 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
@@ -262,7 +262,8 @@ public abstract class AbstractAnnotationProcessor extends AbstractProcessor
{
     protected boolean hasSuperClass(RoundEnvironment roundEnv, TypeElement classElement,
String superClassName) {
         String aRootName = canonicalClassName(classElement.getQualifiedName().toString());
 
-        if (isNullOrEmpty(aRootName) || "java.lang.Object".equals(aRootName)) {
+        // do not check the classes from JDK itself
+        if (isNullOrEmpty(aRootName) || aRootName.startsWith("java.") || aRootName.startsWith("javax."))
{
             return false;
         }
 


Mime
View raw message