camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/8] git commit: apt tooling should support java source 7 onwards. As java6 is dropped.
Date Sat, 27 Sep 2014 12:16:29 GMT
apt tooling should support java source 7 onwards. As java6 is dropped.


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

Branch: refs/heads/master
Commit: f543a1131e4e52e25f635adcff0860c99cf91e28
Parents: 0663319
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sat Sep 27 13:57:22 2014 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sat Sep 27 13:57:22 2014 +0200

----------------------------------------------------------------------
 .../org/apache/camel/tools/apt/EndpointAnnotationProcessor.java  | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/f543a113/tooling/apt/src/main/java/org/apache/camel/tools/apt/EndpointAnnotationProcessor.java
----------------------------------------------------------------------
diff --git a/tooling/apt/src/main/java/org/apache/camel/tools/apt/EndpointAnnotationProcessor.java
b/tooling/apt/src/main/java/org/apache/camel/tools/apt/EndpointAnnotationProcessor.java
index ed4952c..501527b 100644
--- a/tooling/apt/src/main/java/org/apache/camel/tools/apt/EndpointAnnotationProcessor.java
+++ b/tooling/apt/src/main/java/org/apache/camel/tools/apt/EndpointAnnotationProcessor.java
@@ -59,9 +59,8 @@ import static org.apache.camel.tools.apt.util.Strings.canonicalClassName;
 /**
  * Processes all Camel endpoints
  */
-//@SupportedOptions({"foo"})
 @SupportedAnnotationTypes({"org.apache.camel.spi.*"})
-@SupportedSourceVersion(SourceVersion.RELEASE_6)
+@SupportedSourceVersion(SourceVersion.RELEASE_7)
 public class EndpointAnnotationProcessor extends AbstractProcessor {
     public boolean process(Set<? extends TypeElement> annotations, final RoundEnvironment
roundEnv) {
         if (roundEnv.processingOver()) {
@@ -284,7 +283,6 @@ public class EndpointAnnotationProcessor extends AbstractProcessor {
             try {
                 resource = filer.getResource(StandardLocation.CLASS_OUTPUT, packageName,
fileName);
             } catch (Throwable e) {
-                //resource = filer.createResource(StandardLocation.CLASS_OUTPUT, "org.apache.camel",
"CamelAPT2.txt", rootElements.toArray(new Element[rootElements.size()]));
                 resource = filer.createResource(StandardLocation.CLASS_OUTPUT, packageName,
fileName, new Element[0]);
             }
             URI uri = resource.toUri();


Mime
View raw message