View Javadoc
1   /*
2   CommentsIndentation
3   tokens = (default)SINGLE_LINE_COMMENT, BLOCK_COMMENT_BEGIN
4   
5   
6   */
7   
8   package com.puppycrawl.tools.checkstyle.checks.indentation.commentsindentation;
9   
10  @AfterAnnotationCommentsAnnotation1
11  // Comment after annotation
12  public class InputCommentsIndentationAfterAnnotation {
13  
14      @AfterAnnotationCommentsAnnotation1
15      // Comment after annotation
16      public int input;
17  
18  }
19  
20  @AfterAnnotationCommentsAnnotation1
21      // violation '.* incorrect .* level 4, expected is 0, .* same .* as line 22.'
22  class InputCommentsIndentationAfterAnnotation1 {
23  
24      @AfterAnnotationCommentsAnnotation1
25          // violation '.* incorrect .* level 8, expected is 4, .* same .* as line 26.'
26      public int input;
27  
28  }
29  
30  @AfterAnnotationCommentsAnnotation1
31  // Comment after annotation
32  @AfterAnnotationCommentsAnnotation2
33  class InputCommentsIndentationAfterAnnotation3 {
34  
35      @AfterAnnotationCommentsAnnotation1
36      // Comment after annotation
37      @AfterAnnotationCommentsAnnotation2
38      public int input;
39  
40  }
41  
42  @AfterAnnotationCommentsAnnotation1
43      // violation '.* incorrect .* level 4, expected is 0, .* same .* as line 44.'
44  @AfterAnnotationCommentsAnnotation2
45  class InputCommentsIndentationAfterAnnotation4 {
46  
47      @AfterAnnotationCommentsAnnotation1
48          // violation '.* incorrect .* level 8, expected is 4, .* same .* as line 49.'
49      @AfterAnnotationCommentsAnnotation2
50      public int input;
51  
52  }
53  
54  class InputCommentsIndentationAfterAnnotation5 {
55  
56      @AfterAnnotationCommentsAnnotation1
57    // violation '.* incorrect .* level 2, expected is 4, .* same .* as line 58.'
58      @AfterAnnotationCommentsAnnotation2
59      public int input;
60  
61  }
62  
63  @interface AfterAnnotationCommentsAnnotation1 {}
64  @interface AfterAnnotationCommentsAnnotation2 {}