1 /* Config: //indent:0 exp:0 2 * This test-input is intended to be checked using following configuration: //indent:1 exp:1 3 * //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 = true //indent:1 exp:1 8 * lineWrappingIndentation = 8 //indent:1 exp:1 9 * tabWidth = 4 //indent:1 exp:1 10 * throwsIndent = 4 //indent:1 exp:1 11 */ //indent:1 exp:1 12 13 package com.puppycrawl.tools.checkstyle.checks.indentation.indentation; //indent:0 exp:0 14 15 import java.io.InputStreamReader; //indent:0 exp:0 16 17 public class InputIndentationTryBlock { //indent:0 exp:0 18 public void delete(final int assetId) { //indent:4 exp:4 19 try { //indent:8 exp:8 20 new Object().equals(Integer.valueOf(assetId)); //indent:12 exp:12 21 } catch (Exception ignore) { //indent:8 exp:8 22 } //indent:8 exp:8 23 try { //indent:8 exp:8 24 boolean a = //indent:12 exp:12 25 new Object().equals(Integer.valueOf(assetId)); //indent:16 exp:20 warn 26 boolean b = //indent:12 exp:12 27 new Object().equals(Integer.valueOf(assetId)); //indent:12 exp:20 warn 28 } catch(Exception e) {} //indent:8 exp:8 29 } //indent:4 exp:4 30 } //indent:0 exp:0