test/tools/javac/processing/model/element/TestAnonSourceNames.java

Print this page

        

*** 34,45 **** /** * Using the tree API, retrieve element representations of anonymous * classes and verify their names are as specified. */ ! @SupportedAnnotationTypes("*") ! public class TestAnonSourceNames extends AbstractProcessor { public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { if (!roundEnv.processingOver()) { Trees trees = Trees.instance(processingEnv); --- 34,44 ---- /** * Using the tree API, retrieve element representations of anonymous * classes and verify their names are as specified. */ ! public class TestAnonSourceNames extends JavacTestingAbstractProcessor { public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { if (!roundEnv.processingOver()) { Trees trees = Trees.instance(processingEnv);
*** 82,92 **** } } return super.visitClass(node, cu); } } - - @Override - public SourceVersion getSupportedSourceVersion() { - return SourceVersion.latest(); - } } --- 81,86 ----