From d754fdc0a394a7f304dcb40141b7e40631f74d3e Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 29 May 2017 13:23:37 +0100 Subject: [PATCH] KCR34: builder: ReadmeWriterTest: template: make local variable --- .../checkstyle/ruleset/builder/ReadmeWriterTest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/builder/src/test/java/net/kemitix/checkstyle/ruleset/builder/ReadmeWriterTest.java b/builder/src/test/java/net/kemitix/checkstyle/ruleset/builder/ReadmeWriterTest.java index fa8612f..61b584e 100644 --- a/builder/src/test/java/net/kemitix/checkstyle/ruleset/builder/ReadmeWriterTest.java +++ b/builder/src/test/java/net/kemitix/checkstyle/ruleset/builder/ReadmeWriterTest.java @@ -35,8 +35,6 @@ public class ReadmeWriterTest { @Mock private ReadmeIndexBuilder indexBuilder; - private Path template; - private Path fragments; private Path readme; @@ -47,8 +45,8 @@ public class ReadmeWriterTest { @Before public void setUp() throws Exception { MockitoAnnotations.initMocks(this); - template = folder.newFile("README-template.md") - .toPath(); + final Path template = folder.newFile("README-template.md") + .toPath(); Files.write(template, Arrays.asList("i:%s", "ce:%s", "se:%s", "cd:%s", "sd:%s")); fragments = folder.newFolder("fragments") .toPath();