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  
11  public class InputCommentsIndentationCommentsAfterMethodCall {
12      public static void main() {
13          InputCommentsIndentationCommentsAfterMethodCall.flatMap(4,5)
14             // ok
15             .flatMap()
16             .flatMap();
17          // ok
18      }
19      public static void main1() {
20          InputCommentsIndentationCommentsAfterMethodCall.flatMap(4,5)
21                  // ok
22                  .flatMap()
23                  .flatMap();
24                 // violation '.* incorrect .* level 15, expected is 8, .* same .* as line 20.'
25      }
26      public static InputCommentsIndentationCommentsAfterMethodCall flatMap(int i, int h) {
27          return new InputCommentsIndentationCommentsAfterMethodCall();
28      }
29      public static InputCommentsIndentationCommentsAfterMethodCall flatMap() {
30          return new InputCommentsIndentationCommentsAfterMethodCall();
31      }
32  
33  }