Is there a way to annotate an anonymous inner class in Java?
In this example could you add a class level annotation to Class2?
public void method1()
Not yet. This feature is suggested by JSR 308, and may be included in future versions of Java.