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    /** // violation '.* incorrect .* level 2, expected is 0, .* same .* as line 13.'
11     *
12     */
13  public class InputCommentsIndentationJavadoc {
14  
15  // violation below '.* incorrect .* level 0, expected is 4, .* same .* as line 17.'
16  /** some comment */
17      int i;
18  
19          /** // violation '.* incorrect .* level 8, expected is 4, .* same .* as line 22.'
20           *
21           */
22      void foo() {}
23  
24      enum Bar {
25          // violation below '.* incorrect .* level 10, expected is 8, .* same .* as line 27.'
26            /** some comment */
27          A;
28      }
29  
30  }