From f7867283ffa7cb8b3c609213649798de8d279393 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 29 May 2017 12:24:51 +0100 Subject: [PATCH] KCr30: CheckstyleWriterTest: checkstyleTemplate: make field local variable --- .../checkstyle/ruleset/builder/CheckstyleWriterTest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/builder/src/test/java/net/kemitix/checkstyle/ruleset/builder/CheckstyleWriterTest.java b/builder/src/test/java/net/kemitix/checkstyle/ruleset/builder/CheckstyleWriterTest.java index 733908a..f70cbaf 100644 --- a/builder/src/test/java/net/kemitix/checkstyle/ruleset/builder/CheckstyleWriterTest.java +++ b/builder/src/test/java/net/kemitix/checkstyle/ruleset/builder/CheckstyleWriterTest.java @@ -47,8 +47,6 @@ public class CheckstyleWriterTest { private Path outputDirectory; - private Path checkstyleTemplate; - @org.junit.Rule public TemporaryFolder folder = new TemporaryFolder(); @@ -69,8 +67,8 @@ public class CheckstyleWriterTest { .toPath(); outputProperties.setDirectory(outputDirectory); templateProperties = new TemplateProperties(); - checkstyleTemplate = folder.newFile("checkstyle-template.xml") - .toPath(); + val checkstyleTemplate = folder.newFile("checkstyle-template.xml") + .toPath(); Files.write( checkstyleTemplate, TEMPLATE.getBytes(StandardCharsets.UTF_8), StandardOpenOption.TRUNCATE_EXISTING); templateProperties.setCheckstyleXml(checkstyleTemplate);