blob: c19bfabd866dfa09c6e636a5b1793468773828eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
package test4;
enum GetAllRefEnum { A, B };
@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
@interface GetAllRefAnno {
GetAllRefEnum getA();
Class getC();
}
@interface GetAllRefAnnoC {}
@interface GetAllRefAnnoC2 {}
@interface GetAllRefAnnoC3 {}
@interface GetAllRefAnnoC4 {}
@GetAllRefAnno(getA = GetAllRefEnum.A, getC = String.class)
public class GetAllRef {
}
@GetAllRefAnno(getA = GetAllRefEnum.A, getC = String.class)
class GetAllRefB {
}
@GetAllRefAnno(getA = GetAllRefEnum.A, getC = String.class)
class GetAllRefC {
void bar(@GetAllRefAnnoC3 int i, int j,
@GetAllRefAnnoC2 @GetAllRefAnnoC4 boolean b) {}
@GetAllRefAnnoC void foo() {}
@GetAllRefAnnoC2 int value;
}
|