X-Git-Url: http://dolda2000.com/gitweb/?p=jglob.git;a=blobdiff_plain;f=src%2Fdolda%2Fjglob%2FCollector.java;h=894e075c912d7c59d0c8f961630b39fa78c2a609;hp=25b7ab7d4f5b6face1dc6191951cee23044f2625;hb=HEAD;hpb=2c065c6fb52e77571d7d0372f8d4139062131e61 diff --git a/src/dolda/jglob/Collector.java b/src/dolda/jglob/Collector.java index 25b7ab7..894e075 100644 --- a/src/dolda/jglob/Collector.java +++ b/src/dolda/jglob/Collector.java @@ -2,6 +2,7 @@ package dolda.jglob; import java.util.*; import java.io.*; +import java.nio.file.*; import javax.annotation.processing.*; import javax.tools.*; import javax.lang.model.*; @@ -9,7 +10,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; @@ -31,7 +31,7 @@ public class Collector extends AbstractProcessor { InputStream in; try { in = lf.openInputStream(); - } catch(FileNotFoundException e) { + } catch(FileNotFoundException | NoSuchFileException e) { return(prev); } try { @@ -105,4 +105,8 @@ public class Collector extends AbstractProcessor { } return(false); } + + public SourceVersion getSupportedSourceVersion() { + return(SourceVersion.latest()); + } }