aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputCaseLevel.java
blob: 991f947d75f614fe7bf863c1bd665ba8abec4284 (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
package com.puppycrawl.tools.checkstyle.checks.indentation; //indent:0 exp:0

/**                                                                           //indent:0 exp:0
 * This test-input is intended to be checked using following configuration:   //indent:1 exp:1
 *                                                                            //indent:1 exp:1
 * arrayInitIndent = 4                                                        //indent:1 exp:1
 * basicOffset = 4                                                            //indent:1 exp:1
 * braceAdjustment = 0                                                        //indent:1 exp:1
 * caseIndent = 4                                                             //indent:1 exp:1
 * forceStrictCondition = false                                               //indent:1 exp:1
 * lineWrappingIndentation = 4                                                //indent:1 exp:1
 * tabWidth = 4                                                               //indent:1 exp:1
 * throwsIndent = 4                                                           //indent:1 exp:1
 *                                                                            //indent:1 exp:1
 * @author  jrichard                                                         //indent:1 exp:1
 */                                                                           //indent:1 exp:1
public class InputCaseLevel { //indent:0 exp:0

    /** Creates a new instance of InputCaseLevel */ //indent:4 exp:4
    public InputCaseLevel() { //indent:4 exp:4
        int test = 4; //indent:8 exp:8
        switch (test) { //indent:8 exp:8
        case 4: //indent:8 exp:8
            break; //indent:12 exp:12
        case 2: //indent:8 exp:8
            break; //indent:12 exp:12
          default: //indent:10 exp:8 warn
            break; //indent:12 exp:12
        } //indent:8 exp:8


    } //indent:4 exp:4

} //indent:0 exp:0