1
2
3
4
5
6 package integration.tests;
7
8 import static java.lang.annotation.ElementType.FIELD;
9 import static java.lang.annotation.ElementType.METHOD;
10 import static java.lang.annotation.ElementType.TYPE;
11 import static java.lang.annotation.ElementType.TYPE_USE;
12 import static java.lang.annotation.RetentionPolicy.RUNTIME;
13
14 import java.lang.annotation.Retention;
15 import java.lang.annotation.Target;
16
17
18
19
20 @Target({ FIELD, METHOD, TYPE, TYPE_USE })
21 @Retention(RUNTIME)
22 public @interface AnAnnotation {
23
24
25
26
27
28
29 int[] integers() default {};
30
31
32
33
34
35
36 String value() default "test";
37 }