View Javadoc
1   /*
2   UncommentedMain
3   excludedClasses = uncommentedmain\\.InputUncommentedMain5
4   
5   
6   */
7   
8   package com.puppycrawl.tools.checkstyle.checks.uncommentedmain;
9   
10  public class InputUncommentedMain5
11  {
12      public static void main(String[] args)
13      {
14          System.identityHashCode("InputUncommentedMain.main()");
15      }
16  }
17  
18  class PC {
19  
20      // uncommented main with depth 2
21      public static void main(String[] args) // violation
22      {
23          System.identityHashCode("PC.main()");
24      }
25  
26      //lets go deeper
27      private class PC2 {
28  
29          // uncommented main with depth 3
30          public void main(String[] args)
31          {
32              System.identityHashCode("PC.main()");
33          }
34  
35  
36      }
37  }