From 1d78ecd1228a5f1bc8e662d39babb060a25d71a3 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Wed, 24 Jul 2013 22:04:15 +0200 Subject: [PATCH] Indicate support for the same source version that the compiler uses. There's no obvious way to break this anyway. --- src/dolda/jglob/Collector.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dolda/jglob/Collector.java b/src/dolda/jglob/Collector.java index 25b7ab7..0351f75 100644 --- a/src/dolda/jglob/Collector.java +++ b/src/dolda/jglob/Collector.java @@ -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()); + } } -- 2.11.0