aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/checks/InputUncommentedMain2.java
blob: 831fb4a1223ed26dd189d25cd9f4b08166d37ae7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
////////////////////////////////////////////////////////////////////////////////
// Test case file for checkstyle.
// Created: 2003
////////////////////////////////////////////////////////////////////////////////
package com.puppycrawl.tools.checkstyle.checks;


public class InputUncommentedMain2
{
    private class PC {
        
        // uncommented main with depth 2
        public void main(String[] args)
        {
            System.out.println("InputUncommentedMain.main()");
        }
        
        //lets go deeper
        private class PC2 {
            
            // uncommented main with depth 3
            public void main(String[] args)
            {
                System.out.println("InputUncommentedMain.main()");
            }
            
            
        }
    }
    
    public static void main(String[] args)
    {
        System.out.println("InputUncommentedMain.main()");
    }
    
}

interface IF {
    
    void main(String[] args);
}