1 package com.puppycrawl.tools.checkstyle.checks.indentation.indentation;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 @DifficultAnnotation({
18 @MyType(value = Boolean.class,
19 name = "boolean"),
20 @MyType(value = String.class, name = "string") })
21 @SimpleAnnotation
22 public class InputIndentationDifficultAnnotations {
23
24 @DifficultAnnotation({
25 @MyType(value = Boolean.class, name = "boolean"),
26 @MyType(value = String.class, name = "string") })
27 @SimpleAnnotation
28 String foo = "foo";
29
30 @DifficultAnnotation({
31 @MyType(value = Boolean.class, name = "boolean"),
32 @MyType(value = String.class, name = "string") })
33 @SimpleAnnotation
34 void foo() {
35
36 }
37 }
38
39 @DifficultAnnotation({
40 @MyType(value = Boolean.class, name = "boolean"),
41 @MyType(value = String.class, name = "string") })
42 class IncorrectClass {
43
44 @DifficultAnnotation({
45 @MyType(value = Boolean.class, name = "boolean"),
46 @MyType(value = String.class, name = "string") })
47 String foo = "foo";
48
49 @DifficultAnnotation({
50 @MyType(value = Boolean.class, name = "boolean"),
51 @MyType(value = String.class, name = "string") })
52 void foo() {
53
54 }
55 }
56
57 @interface DifficultAnnotation {
58
59 MyType[] value();
60
61 }
62
63 @interface MyType {
64
65 Class<?> value();
66
67 String name();
68 }
69
70 @interface SimpleAnnotation {}