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  public class InputCommentsIndentationWithInMethodCallWithSameIndent {
11      String s1 = "ONE", s2 = "TWO", s3 = "THREE";
12      private final boolean isEqualsOne = equals(
13          // Some comment here
14          s1,
15          s2
16          // ok
17      );
18  
19      private final boolean isEqualsTwo = equals(
20          // Some comment here
21          s1,
22          s2
23        // violation '.* incorrect .* level 6, expected is 4, .* same .* as line 24.'
24      );
25  
26      private final boolean isEqualsThree = equals(
27          // Some comment here
28          s1,
29          s2
30            // violation '.* incorrect .* level 10, expected is 4, .* same .* as line 31.'
31      );
32  
33      private boolean equals(String s1, String s2) {
34          return s1.equals(s2);
35      }
36  }