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 {
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);
}