Annotate anonymous inner class
- by Scobal
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() {
add(new Class2() {
public void method3() {}
});
}