1 /* Config: //indent:0 exp:0 2 * //indent:1 exp:1 3 * arrayInitIndent = 4 //indent:1 exp:1 4 * basicOffset = 4 //indent:1 exp:1 5 * braceAdjustment = 0 //indent:1 exp:1 6 * caseIndent = 4 //indent:1 exp:1 7 * forceStrictCondition = false //indent:1 exp:1 8 * lineWrappingIndentation = 4 //indent:1 exp:1 9 * tabWidth = 4 //indent:1 exp:1 10 * throwsIndent = 4 //indent:1 exp:1 11 * //indent:1 exp:1 12 */ //indent:1 exp:1 13 14 package com.puppycrawl.tools.checkstyle.checks.indentation.indentation; //indent:0 exp:0 15 16 public class InputIndentationForWithoutCurly { //indent:0 exp:0 17 void test() { //indent:4 exp:4 18 int a = 7; //indent:8 exp:8 19 for (int i = 0; i < a; i++); //indent:8 exp:8 20 for (int i = 0; i < a; i++) //indent:8 exp:8 21 expression(); //indent:0 exp:12 warn 22 for (int i = 0; i < a; i++) //indent:8 exp:8 23 expression(); //indent:12 exp:12 24 for (int i = 0; i < a; i++) //indent:8 exp:8 25 expression(); //indent:16 exp:16 26 for (int i = 0; i < a; i++) //indent:4 exp:8 warn 27 expression(); //indent:8 exp:12 warn 28 for (int i = 0; i < a; i++) //indent:8 exp:8 29 expression(); //indent:12 exp:12 30 for (int i = 0; i < a; i++) expression(); //indent:8 exp:8 31 for (int i = 0; i < a; i++) //indent:8 exp:8 32 for (int j = 0; i < a; i++) //indent:8 exp:12 warn 33 expression(); //indent:8 exp:16 warn 34 boolean b = false; //indent:8 exp:8 35 for (int i = 0; i < a; i++) //indent:8 exp:8 36 b = true //indent:12 exp:12 37 && false; //indent:8 exp:16 warn 38 for (int i = 0; i < a; i++) //indent:8 exp:8 39 b = true //indent:12 exp:12 40 && false; //indent:20 exp:20 41 for (int i = 0; i < a; i++) //indent:8 exp:8 42 b = true //indent:12 exp:12 43 && false; //indent:16 exp:16 44 } //indent:4 exp:4 45 46 void expression() {} //indent:4 exp:4 47 } //indent:0 exp:0