aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/annotations/declare/AnnotatedType.java
blob: ab76aadf48783196e396c13a76248b85f0094c62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME) @interface Color { String value();} 

@Color("red")
public class AnnotatedType {
  public static void main(String[] argv) {
    new AnnotatedType().m();
  }

  public void m() {
    System.err.println("m() running");
  }
}