builder: DefaultPackageScannerTest: make classPath local variable

This commit is contained in:
Paul Campbell 2017-05-30 12:44:33 +01:00
parent 1b318253d2
commit f189fb3b84

View file

@ -16,13 +16,11 @@ import static org.assertj.core.api.Assertions.assertThat;
*/ */
public class DefaultPackageScannerTest { public class DefaultPackageScannerTest {
private ClassPath classPath;
private DefaultPackageScanner scanner; private DefaultPackageScanner scanner;
@Before @Before
public void setUp() throws Exception { public void setUp() throws Exception {
classPath = ClassPath.from(getClass().getClassLoader()); final ClassPath classPath = ClassPath.from(getClass().getClassLoader());
scanner = new DefaultPackageScanner(classPath); scanner = new DefaultPackageScanner(classPath);
} }