equal
deleted
inserted
replaced
25 import javax.annotation.processing.*; |
25 import javax.annotation.processing.*; |
26 import javax.lang.model.*; |
26 import javax.lang.model.*; |
27 import javax.lang.model.element.*; |
27 import javax.lang.model.element.*; |
28 |
28 |
29 @SupportedAnnotationTypes("*") |
29 @SupportedAnnotationTypes("*") |
30 @SupportedSourceVersion(SourceVersion.RELEASE_7) |
|
31 public class Anno extends AbstractProcessor { |
30 public class Anno extends AbstractProcessor { |
32 public boolean process(Set<? extends TypeElement> annotations, |
31 public boolean process(Set<? extends TypeElement> annotations, |
33 RoundEnvironment roundEnv) { |
32 RoundEnvironment roundEnv) { |
34 //if (!roundEnv.processingOver()) |
33 //if (!roundEnv.processingOver()) |
35 // System.err.println("annotation processing"); |
34 // System.err.println("annotation processing"); |
36 return true; |
35 return true; |
37 } |
36 } |
|
37 |
|
38 @Override |
|
39 public SourceVersion getSupportedSourceVersion() { |
|
40 return SourceVersion.latest(); |
|
41 } |
38 } |
42 } |