View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.indentation.commentsindentation;
2   
3   @AfterAnnotationCommentsAnnotation1
4   // Comment after annotation
5   public class InputCommentsIndentationAfterAnnotation {
6   
7       @AfterAnnotationCommentsAnnotation1
8       // Comment after annotation
9       public int input;
10  
11  }
12  
13  @AfterAnnotationCommentsAnnotation1
14      // violation
15  class InputCommentsIndentationAfterAnnotation1 {
16  
17      @AfterAnnotationCommentsAnnotation1
18          // violation
19      public int input;
20  
21  }
22  
23  @AfterAnnotationCommentsAnnotation1
24  // Comment after annotation
25  @AfterAnnotationCommentsAnnotation2
26  class InputCommentsIndentationAfterAnnotation3 {
27  
28      @AfterAnnotationCommentsAnnotation1
29      // Comment after annotation
30      @AfterAnnotationCommentsAnnotation2
31      public int input;
32  
33  }
34  
35  @AfterAnnotationCommentsAnnotation1
36      // violation
37  @AfterAnnotationCommentsAnnotation2
38  class InputCommentsIndentationAfterAnnotation4 {
39  
40      @AfterAnnotationCommentsAnnotation1
41          // violation
42      @AfterAnnotationCommentsAnnotation2
43      public int input;
44  
45  }
46  
47  class InputCommentsIndentationAfterAnnotation5 {
48  
49      @AfterAnnotationCommentsAnnotation1
50    // violation
51      @AfterAnnotationCommentsAnnotation2
52      public int input;
53  
54  }
55  
56  @interface AfterAnnotationCommentsAnnotation1 {}
57  @interface AfterAnnotationCommentsAnnotation2 {}