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 = 2                                                        //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 InputIndentationBraceAdjustment //indent:0 exp:0
18    { //indent:2 exp:2
19  
20      /** Creates a new instance of InputIndentationBraceAdjustment */ //indent:4 exp:4
21      public InputIndentationBraceAdjustment() //indent:4 exp:4
22        { //indent:6 exp:6
23          // sorry about the religious commentary... :) //indent:8 exp:8
24          boolean uglyGnuStyle = true; //indent:8 exp:10 warn
25          if (uglyGnuStyle) //indent:8 exp:10 warn
26            { //indent:10 exp:12 warn
27              System.identityHashCode("ugly GNU style braces"); //indent:12 exp:14,16 warn
28          } //indent:8 exp:12 warn
29        } //indent:6 exp:6
30  
31    } //indent:2 exp:2