aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test5/RemoveAnnotation.java
blob: 97f7525388fd5298f40bdf9db0cac475dce70cc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package test5;

@interface RemoveAnno1 {}

@interface RemoveAnno2 {
    int foo() default 3;
}

@RemoveAnno1 public class RemoveAnnotation {
    @RemoveAnno1 @RemoveAnno2(foo=4)
    int foo() { return 1; }

    @RemoveAnno2
    int bar() { return 2; }

    @RemoveAnno1
    int baz = 10;

    public int run() { return foo() + bar(); }
}