View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.indentation.commentsindentation;
2   
3   import java.util.Arrays;
4   
5   // some
6   
7   public class InputCommentsIndentationSurroundingCode2Two {
8   
9   
10      public String foo9(String s1, String s2, String s3) {
11          return "";
12      }
13  
14      public void foo10()
15              throws Exception {
16  
17          final String pattern = "^foo$";
18  
19          final String[] expected = {
20                  "7:13: " + foo9("", "", ""),
21                  // comment
22          };
23      }
24  
25      public void foo11() {
26  
27          /* empty */
28          hashCode();
29      }
30  
31      public void foo12() {
32          /* empty */
33          hashCode();
34      }
35  
36      public void foo13() {
37          hashCode();
38          /* empty */
39      }
40  
41      public void foo14() {
42          hashCode();
43          /*
44  
45          Test
46          */
47          // Test
48      }
49  
50      public InputCommentsIndentationSurroundingCode2Two() {
51      }
52  }// The Check should not throw NPE here!
53  // The Check should not throw NPE here!