From f189fb3b846e9fcbce265b8ce50501900fcc5ffc Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Tue, 30 May 2017 12:44:33 +0100 Subject: [PATCH] builder: DefaultPackageScannerTest: make classPath local variable --- .../checkstyle/ruleset/builder/DefaultPackageScannerTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/builder/src/test/java/net/kemitix/checkstyle/ruleset/builder/DefaultPackageScannerTest.java b/builder/src/test/java/net/kemitix/checkstyle/ruleset/builder/DefaultPackageScannerTest.java index 978200e..e0540f2 100644 --- a/builder/src/test/java/net/kemitix/checkstyle/ruleset/builder/DefaultPackageScannerTest.java +++ b/builder/src/test/java/net/kemitix/checkstyle/ruleset/builder/DefaultPackageScannerTest.java @@ -16,13 +16,11 @@ import static org.assertj.core.api.Assertions.assertThat; */ public class DefaultPackageScannerTest { - private ClassPath classPath; - private DefaultPackageScanner scanner; @Before public void setUp() throws Exception { - classPath = ClassPath.from(getClass().getClassLoader()); + final ClassPath classPath = ClassPath.from(getClass().getClassLoader()); scanner = new DefaultPackageScanner(classPath); }