| package testannotations; |
| |
| import static java.lang.annotation.ElementType.FIELD; |
| import static java.lang.annotation.ElementType.METHOD; |
| import static java.lang.annotation.ElementType.PARAMETER; |
| import static java.lang.annotation.ElementType.TYPE; |
| |
| import java.lang.annotation.Retention; |
| import java.lang.annotation.RetentionPolicy; |
| import java.lang.annotation.Target; |
| |
| |
| @Target( |
| { TYPE, FIELD, METHOD, PARAMETER }) |
| @Retention(RetentionPolicy.RUNTIME) |
| @SuppressWarnings("rawtypes") |
| public @interface ArrayAnnotation |
| { |
| int[] numbers() default |
| {}; |
| |
| String[] strings() default |
| {}; |
| |
| Class[] types() default |
| {}; |
| |
| Maybe[] annotations() default |
| {}; |
| |
| } |