1
2
3
4
5
6
7
8
9
10
11 package com.puppycrawl.tools.checkstyle.checks.annotation.annotationlocation;
12
13 import java.lang.annotation.ElementType;
14 import java.lang.annotation.Repeatable;
15 import java.lang.annotation.Target;
16
17 @AnnotationAnnotation(value = "foo")
18 @AnnotationAnnotation
19
20 @AnnotationAnnotation("bar") @interface InputAnnotationLocationAnnotation {
21
22 @AnnotationAnnotation(value = "foo")
23 @AnnotationAnnotation
24 @AnnotationAnnotation("bar") String value();
25
26 }
27
28 @Repeatable(AnnotationAnnotations.class)
29 @Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD})
30 @interface AnnotationAnnotation {
31
32 String value() default "";
33
34 }
35
36 @Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD})
37 @interface AnnotationAnnotations {
38
39 AnnotationAnnotation[] value();
40
41 }