From 4f892fe43aed58fb447078fb3988c5263a71d60d Mon Sep 17 00:00:00 2001 From: Oleg Sukhodolsky Date: Thu, 5 Jun 2003 11:33:47 +0000 Subject: [PATCH] Indentation. Fix for testBraceAdjustment unit test. --- .../tools/checkstyle/checks/indentation/BlockParentHandler.java | 2 +- .../tools/checkstyle/checks/IndentationCheckTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/indentation/BlockParentHandler.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/indentation/BlockParentHandler.java index 3f6b8a6fb..69d7b7785 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/indentation/BlockParentHandler.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/indentation/BlockParentHandler.java @@ -204,7 +204,7 @@ public class BlockParentHandler extends ExpressionHandler { return; } - logError(rcurly, "rcurly", expandedTabsColumnNo(rcurly)); + logError(rcurly, "rcurly", expandedTabsColumnNo(rcurly), curlyLevel()); } /** diff --git a/src/tests/com/puppycrawl/tools/checkstyle/checks/IndentationCheckTest.java b/src/tests/com/puppycrawl/tools/checkstyle/checks/IndentationCheckTest.java index e06ad41dd..fb0e240e2 100644 --- a/src/tests/com/puppycrawl/tools/checkstyle/checks/IndentationCheckTest.java +++ b/src/tests/com/puppycrawl/tools/checkstyle/checks/IndentationCheckTest.java @@ -654,7 +654,7 @@ public class IndentationCheckTest extends BaseCheckTestCase { final DefaultConfiguration checkConfig = createCheckConfig(IndentationCheck.class); checkConfig.addAttribute("braceAdjustment", new Integer(2).toString()); final String[] expected = { - "24: if rcurly at indentation level 8 not at correct indentation, 8", + "24: if rcurly at indentation level 8 not at correct indentation, 10", }; verify(checkConfig, getPath("indentation/InputBraceAdjustment.java"), expected); }