View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.indentation.indentation; //indent:0 exp:0
2   
3   /**                                                                           //indent:0 exp:0
4    * This test-input is intended to be checked using following configuration:   //indent:1 exp:1
5    *                                                                            //indent:1 exp:1
6    * arrayInitIndent = 4                                                        //indent:1 exp:1
7    * basicOffset = 4                                                            //indent:1 exp:1
8    * braceAdjustment = 0                                                        //indent:1 exp:1
9    * caseIndent = 4                                                             //indent:1 exp:1
10   * forceStrictCondition = false                                               //indent:1 exp:1
11   * lineWrappingIndentation = 4                                                //indent:1 exp:1
12   * tabWidth = 4                                                               //indent:1 exp:1
13   * throwsIndent = 4                                                           //indent:1 exp:1
14   *                                                                            //indent:1 exp:1
15   * @author  jrichard                                                         //indent:1 exp:1
16   */                                                                           //indent:1 exp:1
17  public class InputIndentationCaseLevel { //indent:0 exp:0
18  
19      /** Creates a new instance of InputIndentationCaseLevel */ //indent:4 exp:4
20      public InputIndentationCaseLevel() { //indent:4 exp:4
21          int test = 4; //indent:8 exp:8
22          switch (test) { //indent:8 exp:8
23          case 4: //indent:8 exp:8
24              break; //indent:12 exp:12
25          case 2: //indent:8 exp:8
26              break; //indent:12 exp:12
27            default: //indent:10 exp:8 warn
28              break; //indent:12 exp:12
29          } //indent:8 exp:8
30  
31  
32      } //indent:4 exp:4
33  
34  } //indent:0 exp:0