From 033f65e786fef1b8e62dca15055f4b5b698d33ab Mon Sep 17 00:00:00 2001 From: Michal Kordas Date: Wed, 11 Nov 2015 23:03:02 +0100 Subject: [PATCH] Issue #2581: Enforce all annotations to be separate line for Checkstyle --- config/checkstyle_checks.xml | 4 +++- src/test/java/com/puppycrawl/tools/checkstyle/MainTest.java | 3 ++- .../java/com/puppycrawl/tools/checkstyle/TreeWalkerTest.java | 3 ++- .../checkstyle/checks/regexp/RegexpMultilineCheckTest.java | 3 ++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/config/checkstyle_checks.xml b/config/checkstyle_checks.xml index 3e92d5b16..51f4ea010 100644 --- a/config/checkstyle_checks.xml +++ b/config/checkstyle_checks.xml @@ -108,7 +108,9 @@ - + + + diff --git a/src/test/java/com/puppycrawl/tools/checkstyle/MainTest.java b/src/test/java/com/puppycrawl/tools/checkstyle/MainTest.java index 442cab9e0..22561973b 100644 --- a/src/test/java/com/puppycrawl/tools/checkstyle/MainTest.java +++ b/src/test/java/com/puppycrawl/tools/checkstyle/MainTest.java @@ -508,7 +508,8 @@ public class MainTest { }; exit.checkAssertionAfterwards(new Assertion() { - @Override public void checkAssertion() throws IOException { + @Override + public void checkAssertion() throws IOException { final String expectedPath = getFilePath("checks/metrics") + File.separator; final StringBuilder sb = new StringBuilder(); sb.append("Starting audit...").append(System.getProperty("line.separator")); diff --git a/src/test/java/com/puppycrawl/tools/checkstyle/TreeWalkerTest.java b/src/test/java/com/puppycrawl/tools/checkstyle/TreeWalkerTest.java index 6f0ecfc39..dcde375ac 100644 --- a/src/test/java/com/puppycrawl/tools/checkstyle/TreeWalkerTest.java +++ b/src/test/java/com/puppycrawl/tools/checkstyle/TreeWalkerTest.java @@ -48,7 +48,8 @@ import com.puppycrawl.tools.checkstyle.checks.naming.ConstantNameCheck; import com.puppycrawl.tools.checkstyle.checks.naming.TypeNameCheck; public class TreeWalkerTest extends BaseCheckTestSupport { - @Rule public final TemporaryFolder temporaryFolder = new TemporaryFolder(); + @Rule + public final TemporaryFolder temporaryFolder = new TemporaryFolder(); @Test public void testProperFileExtension() throws Exception { diff --git a/src/test/java/com/puppycrawl/tools/checkstyle/checks/regexp/RegexpMultilineCheckTest.java b/src/test/java/com/puppycrawl/tools/checkstyle/checks/regexp/RegexpMultilineCheckTest.java index 21cc8661f..883fd7b04 100644 --- a/src/test/java/com/puppycrawl/tools/checkstyle/checks/regexp/RegexpMultilineCheckTest.java +++ b/src/test/java/com/puppycrawl/tools/checkstyle/checks/regexp/RegexpMultilineCheckTest.java @@ -39,7 +39,8 @@ import com.puppycrawl.tools.checkstyle.BaseFileSetCheckTestSupport; import com.puppycrawl.tools.checkstyle.DefaultConfiguration; public class RegexpMultilineCheckTest extends BaseFileSetCheckTestSupport { - @Rule public final TemporaryFolder temporaryFolder = new TemporaryFolder(); + @Rule + public final TemporaryFolder temporaryFolder = new TemporaryFolder(); private DefaultConfiguration checkConfig;