test/tools/javac/processing/model/element/TestAnonSourceNames.java
Print this page
@@ -34,12 +34,11 @@
/**
* Using the tree API, retrieve element representations of anonymous
* classes and verify their names are as specified.
*/
-@SupportedAnnotationTypes("*")
-public class TestAnonSourceNames extends AbstractProcessor {
+public class TestAnonSourceNames extends JavacTestingAbstractProcessor {
public boolean process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) {
if (!roundEnv.processingOver()) {
Trees trees = Trees.instance(processingEnv);
@@ -82,11 +81,6 @@
}
}
return super.visitClass(node, cu);
}
}
-
- @Override
- public SourceVersion getSupportedSourceVersion() {
- return SourceVersion.latest();
- }
}