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   *                                                                            //indent:1 exp:1
16   */                                                                           //indent:1 exp:1
17  @interface MyAnnotation3 { //indent:0 exp:0
18      String name(); //indent:4 exp:4
19      int version(); //indent:4 exp:4
20  } //indent:0 exp:0
21  
22  @MyAnnotation3(name = "ABC", version = 1) //indent:0 exp:0
23  public class InputIndentation15Extensions //indent:0 exp:0
24  { //indent:0 exp:0
25  
26  } //indent:0 exp:0
27  
28  enum Enum1 //indent:0 exp:0
29  { //indent:0 exp:0
30      A, B, C; //indent:4 exp:4
31      Enum1() {} //indent:4 exp:4
32      public String toString() { //indent:4 exp:4
33          return ""; //some custom implementation //indent:8 exp:8
34      } //indent:4 exp:4
35  } //indent:0 exp:0
36  
37  interface TestRequireThisEnum //indent:0 exp:0
38  { //indent:0 exp:0
39      enum DAY_OF_WEEK //indent:4 exp:4
40      { //indent:4 exp:4
41          SUNDAY, //indent:8 exp:8
42          MONDAY, //indent:8 exp:8
43          TUESDAY, //indent:8 exp:8
44          WEDNESDAY, //indent:8 exp:8
45          THURSDAY, //indent:8 exp:8
46          FRIDAY, //indent:8 exp:8
47          SATURDAY //indent:8 exp:8
48      } //indent:4 exp:4
49  } //indent:0 exp:0