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 = 8 //indent:1 exp:1 14 * //indent:1 exp:1 15 * //indent:1 exp:1 16 */ //indent:1 exp:1 17 public class InputIndentationInvalidThrowsIndent { //indent:0 exp:0 18 19 public InputIndentationInvalidThrowsIndent() //indent:4 exp:4 20 { //indent:4 exp:4 21 } //indent:4 exp:4 22 23 // This should pass for our reconfigured throwsIndent test. //indent:4 exp:4 24 private void myFunc() //indent:4 exp:4 25 throws Exception //indent:12 exp:>=12 26 { //indent:4 exp:4 27 } //indent:4 exp:4 28 29 // This is the out of the box default configuration, but should fail //indent:4 exp:4 30 // for our reconfigured test. //indent:4 exp:4 31 private void myFunc2() //indent:4 exp:4 32 throws Exception //indent:12 exp:>=12 33 { //indent:4 exp:4 34 } //indent:4 exp:4 35 36 private void myFunc3() //indent:4 exp:4 37 throws //indent:12 exp:>=12 38 Exception //indent:12 exp:>=12 39 { //indent:4 exp:4 40 } //indent:4 exp:4 41 42 private void myFunc4() throws //indent:4 exp:4 43 Exception //indent:16 exp:>=12 44 { //indent:4 exp:4 45 } //indent:4 exp:4 46 } //indent:0 exp:0