Indicate support for the same source version that the compiler uses.
authorFredrik Tolf <fredrik@dolda2000.com>
Wed, 24 Jul 2013 20:04:15 +0000 (22:04 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Wed, 24 Jul 2013 20:04:15 +0000 (22:04 +0200)
There's no obvious way to break this anyway.

src/dolda/jglob/Collector.java

index 25b7ab7..0351f75 100644 (file)
@@ -9,7 +9,6 @@ import javax.lang.model.element.*;
 import javax.lang.model.util.*;
 
 @SupportedAnnotationTypes({"*"})
-@SupportedSourceVersion(SourceVersion.RELEASE_5)
 public class Collector extends AbstractProcessor {
     private ProcessingEnvironment cfg;
     private Elements eu;
@@ -105,4 +104,8 @@ public class Collector extends AbstractProcessor {
        }
        return(false);
     }
+
+    public SourceVersion getSupportedSourceVersion() {
+       return(SourceVersion.latest());
+    }
 }