Refactor JavaDirectoryDelete (#2542)

This commit is contained in:
Grzegorz Piwowarek 2017-09-01 09:41:11 +02:00 committed by GitHub
parent 12ffbe027d
commit 6d797a2cc3
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ public class JavaDirectoryDeleteUnitTest {
private static Path TEMP_DIRECTORY;
private static final String DIRECTORY_NAME = "toBeDeleted";
public static final List<String> ALL_LINES = Arrays.asList(new String[] { "This is line 1", "This is line 2", "This is line 3", "This is line 4", "This is line 5", "This is line 6" });
private static final List<String> ALL_LINES = Arrays.asList("This is line 1", "This is line 2", "This is line 3", "This is line 4", "This is line 5", "This is line 6");
@BeforeClass
public static void initializeTempDirectory() throws IOException {
@ -65,7 +65,7 @@ public class JavaDirectoryDeleteUnitTest {
}
}
boolean deleteDirectory(File directoryToBeDeleted) {
private boolean deleteDirectory(File directoryToBeDeleted) {
File[] allContents = directoryToBeDeleted.listFiles();
if (allContents != null) {