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 = 8                                                //indent:1 exp:1
12   * tabWidth = 4                                                               //indent:1 exp:1
13   * throwsIndent = 8                                                           //indent:1 exp:1
14   *                                                                            //indent:1 exp:1
15   *                                                                            //indent:1 exp:1
16   */                                                                           //indent:1 exp:1
17  public class InputIndentationSwitchCustom { //indent:0 exp:0
18      private static final int ABC1 = 0; //indent:4 exp:4
19      private static final int ABC2 = 0; //indent:4 exp:4
20      private static final int ABC3 = 0; //indent:4 exp:4
21  
22      public int getValue(int value) { //indent:4 exp:4
23          switch (value) { //indent:8 exp:8
24              case 0: return ABC1; //indent:12 exp:12
25              case 1: return ABC2; //indent:12 exp:12
26              case 2: return ABC3; //indent:12 exp:12
27          } //indent:8 exp:8
28          return 0; //indent:8 exp:8
29      } //indent:4 exp:4
30  
31      public int getValue1(int value) { //indent:4 exp:4
32          switch (value) { //indent:8 exp:8
33              case 0: //indent:12 exp:12
34                  return ABC1; //indent:16 exp:16
35              case 1: //indent:12 exp:12
36                  return ABC2; //indent:16 exp:16
37              case 2: //indent:12 exp:12
38                  return ABC3; //indent:16 exp:16
39          } //indent:8 exp:8
40          return 0; //indent:8 exp:8
41      } //indent:4 exp:4
42  } //indent:0 exp:0