View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.indentation.indentation; //indent:0 exp:0
2   
3   import java.lang.annotation.ElementType; //indent:0 exp:0
4   import java.lang.annotation.Repeatable; //indent:0 exp:0
5   import java.lang.annotation.Retention; //indent:0 exp:0
6   import java.lang.annotation.RetentionPolicy; //indent:0 exp:0
7   import java.lang.annotation.Target; //indent:0 exp:0
8   
9   public @interface InputIndentationCustomAnnotation { //indent:0 exp:0
10      int value = 1; //indent:4 exp:4
11      int value() default 0; //indent:4 exp:4
12  } //indent:0 exp:0
13  
14       @Retention(RetentionPolicy.SOURCE) @interface AnnotationWithComments { //inside comments //indent:5 exp:0 warn
15       } //indent:5 exp:0 warn
16       @interface AnnotationWithStringProperty { //indent:5 exp:0 warn
17  String author(); //indent:0 exp:4 warn
18       } //indent:5 exp:0 warn
19  
20     @Retention(RetentionPolicy.SOURCE) //indent:3 exp:0 warn
21  @interface AnnotationWithDefaultStringAndAnnotation { //indent:0 exp:0
22  String author() default "author"; //indent:0 exp:4 warn
23       } //indent:5 exp:0 warn
24  
25       @interface //indent:5 exp:0 warn
26       AnnotationWithLineWrap { //indent:5 exp:0 warn
27      String author(); //indent:4 exp:4
28  } //indent:0 exp:0
29  
30       @Target(ElementType.METHOD) //indent:5 exp:0 warn
31     @Retention(RetentionPolicy.RUNTIME) //indent:3 exp:0 warn
32  @interface AnnotationWithTarget { //indent:0 exp:0
33      String author() default "author"; //indent:4 exp:4
34       String book(); //indent:5 exp:4 warn
35     @Retention(RetentionPolicy.SOURCE) //indent:3 exp:4 warn
36  @Repeatable(RepeatableInner.class) //indent:0 exp:4 warn
37  @interface //indent:0 exp:4 warn
38          AnnotationInnerLineWrap //indent:8 exp:4 warn
39      { //indent:4 exp:4
40          public String author() default "auth"; //indent:8 exp:8
41         @AnnotationWithTarget(book = "") public String title() default "title"; //indent:7 exp:8 warn
42      }//indent:4 exp:4
43  } //indent:0 exp:0
44  @interface RepeatableInner { //indent:0 exp:0
45      AnnotationWithTarget.AnnotationInnerLineWrap[] value(); //indent:4 exp:4
46  } //indent:0 exp:0
47  
48  @interface Ann {} //indent:0 exp:0
49  
50  class InnerAnnonClass { //indent:0 exp:0
51      @interface MyInnerAnno { //indent:4 exp:4
52          String author(); //indent:8 exp:8
53      } //indent:4 exp:4
54  } //indent:0 exp:0
55  @Retention(RetentionPolicy.SOURCE) //indent:0 exp:0
56  @Repeatable(RepeatableInner2.class) //indent:0 exp:0
57  @interface //indent:0 exp:0
58      AnnotationInnerLineWrap2 { //indent:4 exp:0 warn
59     public String author() default "auth"; //indent:3 exp:4 warn
60         @AnnotationWithTarget(book = "") public String title() default "title"; //indent:7 exp:4 warn
61      }//indent:4 exp:0 warn
62  
63  @interface RepeatableInner2 { //indent:0 exp:0
64      AnnotationInnerLineWrap2[] value(); //indent:4 exp:4
65  } //indent:0 exp:0
66  
67  @interface RepeatableInner3 { //indent:0 exp:0
68      AnnotationInnerLineWrap2[] value(); //indent:4 exp:4
69  } //indent:0 exp:0
70  
71  class InnerAnnotSingleLine { //indent:0 exp:0
72     @Retention(RetentionPolicy.SOURCE) @interface AnnotationOneLine {} //indent:3 exp:4 warn
73  } //indent:0 exp:0
74  
75  @interface AnnotationDef { //indent:0 exp:0
76      int value = 1; //indent:4 exp:4
77  } //indent:0 exp:0
78  
79  @interface AnnotationDef2 { //indent:0 exp:0
80      int value //indent:4 exp:4
81          = Integer.parseInt("1"); //indent:8 exp:8
82      Object object = new Object(){ //indent:4 exp:4
83          @Override //indent:8 exp:8
84          public String toString() { //indent:8 exp:8
85              return //indent:12 exp:12
86                      new String( //indent:20 exp:20
87                              new StringBuilder("Hello") //indent:28 exp:28
88                                      .append(",World")) //indent:36 exp:36
89                      ; //indent:20 exp:20
90          } //indent:8 exp:8
91      }.toString(); //indent:4 exp:4
92  } //indent:0 exp:0
93  
94  @Retention(RetentionPolicy.RUNTIME) //indent:0 exp:0
95  @interface Multitude { String value(); } //indent:0 exp:0
96  
97  @Retention(RetentionPolicy.RUNTIME) //indent:0 exp:0
98  @interface MetaConfig { //indent:0 exp:0
99  
100 	static class DevConfig { //indent:4 exp:4
101 	} //indent:4 exp:4
102 
103 	static class ProductionConfig { //indent:4 exp:4
104 	} //indent:4 exp:4
105 	Class<?>[] classes() default { DevConfig.class, ProductionConfig.class }; //indent:4 exp:4
106 } //indent:0 exp:0
107 
108 @Retention(RetentionPolicy.RUNTIME) //indent:0 exp:0
109 @interface Multitudes { Multitude[] value(); } //indent:0 exp:0
110 
111 @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) //indent:0 exp:0
112 @interface Aclass { //indent:0 exp:0
113     String b(); //indent:4 exp:4
114     String[] c(); //indent:4 exp:4
115 } //indent:0 exp:0
116 class InnerAnnotSingleLine2 { //indent:0 exp:0
117      @Retention(RetentionPolicy.SOURCE) @interface AnnotationOneLine {} //indent:5 exp:4 warn
118 } //indent:0 exp:0
119 @interface RepeatableInner4 { //indent:0 exp:0
120     public AnnotationWithTarget.AnnotationInnerLineWrap[] value(); //indent:4 exp:4
121 } //indent:0 exp:0
122 @interface HelloAnnot { //indent:0 exp:0
123     public //indent:4 exp:4
124         String myString() //indent:8 exp:8
125         default "Hello"; //indent:8 exp:8
126 } //indent:0 exp:0
127 @ //indent:0 exp:0
128  interface //indent:1 exp:0 warn
129 MyAnnotationWrapped { //indent:0 exp:0
130     int value() default -1; //indent:4 exp:4
131     AnnotationWithTarget.AnnotationInnerLineWrap field(); //indent:4 exp:4
132 } //indent:0 exp:0
133 @Retention(RetentionPolicy.RUNTIME) //indent:0 exp:0
134            @interface Marker {} //indent:11 exp:0 warn
135 @Target({ ElementType.METHOD, ElementType.TYPE_PARAMETER }) //indent:0 exp:0
136 @Retention(RetentionPolicy.RUNTIME) //indent:0 exp:0
137 				@interface FetchProfile { //indent:16 exp:0 warn
138 	String name(); //indent:4 exp:4
139 
140 	FetchOverride[] fetchOverrides(); //indent:4 exp:4
141 
142 	@Target({ ElementType.TYPE, ElementType.METHOD }) //indent:4 exp:4
143 	@Retention(RetentionPolicy.RUNTIME) //indent:4 exp:4
144 			@interface FetchOverride { //indent:12 exp:4 warn
145 		String association(); //indent:8 exp:8
146 	} //indent:4 exp:4
147 } //indent:0 exp:0
148 				class FetchProfile2 { //indent:16 exp:0 warn
149 	String name; //indent:4 exp:4
150 
151 	FetchOverride2[] fetchOverrides; //indent:4 exp:4
152 
153 	@Target({ ElementType.TYPE, ElementType.METHOD }) //indent:4 exp:4
154     @interface FetchOverride2 { //indent:4 exp:4
155 		String association(); //indent:8 exp:8
156 	} //indent:4 exp:4
157 } //indent:0 exp:0