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 InputIndentationValidCommaIndent { //indent:0 exp:0
18  
19      /** Creates a new instance of InputIndentationValidCommaIndent */ //indent:4 exp:4
20      public InputIndentationValidCommaIndent() { //indent:4 exp:4
21      } //indent:4 exp:4
22  
23      public void method1(int x, int y, int z) { //indent:4 exp:4
24          boolean test = true; //indent:8 exp:8
25          int i, j = 2, //indent:8 exp:8
26              k = 4, //indent:12 exp:>=12
27              l, //indent:12 exp:>=12
28              m = 4; //indent:12 exp:>=12
29  
30          boolean longVarName = true; //indent:8 exp:8
31          boolean myotherLongVariableName = false; //indent:8 exp:8
32          if (j == 2 || longVarName == true || myotherLongVariableName == true || myotherLongVariableName == false || longVarName == true) { //indent:8 exp:8
33          } //indent:8 exp:8
34  
35          if ((j == 2 && k == 3) //indent:8 exp:8
36                || test) { //indent:14 exp:>=12
37              System.identityHashCode("test"); //indent:12 exp:12
38          } //indent:8 exp:8
39  
40  
41      } //indent:4 exp:4
42  
43      public void method1(int a, int x, //indent:4 exp:4
44          int y, int z) { //indent:8 exp:>=8
45      } //indent:4 exp:4
46  } //indent:0 exp:0