import java.util.*;
import java.io.*;
+import java.nio.file.*;
import javax.annotation.processing.*;
import javax.tools.*;
import javax.lang.model.*;
import javax.lang.model.util.*;
@SupportedAnnotationTypes({"*"})
-@SupportedSourceVersion(SourceVersion.RELEASE_5)
public class Collector extends AbstractProcessor {
private ProcessingEnvironment cfg;
private Elements eu;
InputStream in;
try {
in = lf.openInputStream();
- } catch(FileNotFoundException e) {
+ } catch(FileNotFoundException | NoSuchFileException e) {
return(prev);
}
try {
}
return(false);
}
+
+ public SourceVersion getSupportedSourceVersion() {
+ return(SourceVersion.latest());
+ }
}