Annotate anonymous inner class
        Posted  
        
            by Scobal
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Scobal
        
        
        
        Published on 2010-06-11T09:07:17Z
        Indexed on 
            2010/06/11
            9:13 UTC
        
        
        Read the original article
        Hit count: 222
        
java
|annotations
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() {}
  });
}
© Stack Overflow or respective owner