View Javadoc
1   /*
2   ExecutableStatementCount
3   max = 0
4   tokens = CTOR_DEF
5   
6   
7   */
8   
9   package com.puppycrawl.tools.checkstyle.checks.sizes.executablestatementcount;
10  
11  public class InputExecutableStatementCountCtorDef {
12      public InputExecutableStatementCountCtorDef() // violation
13      {
14          int i = 1;
15          if (System.currentTimeMillis() == 0) {
16          } else if (System.currentTimeMillis() == 0) {
17          } else {
18          }
19      }
20  
21      /** Inner */
22      public InputExecutableStatementCountCtorDef(int aParam) // violation
23      {
24          Runnable runnable = new Runnable() {
25              public void run() {
26                  while (true) {
27                  }
28              }
29          };
30          new Thread(runnable).start();
31      }
32  
33      /** Empty constructor */
34      public InputExecutableStatementCountCtorDef(String someString) {} // ok
35  }