Skip to content

Commit 6d797a2

Browse files
authored
Refactor JavaDirectoryDelete (eugenp#2542)
1 parent 12ffbe0 commit 6d797a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎libraries/src/test/java/com/baeldung/java/io/JavaDirectoryDeleteUnitTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class JavaDirectoryDeleteUnitTest {
2626
private static Path TEMP_DIRECTORY;
2727
private static final String DIRECTORY_NAME = "toBeDeleted";
2828

29-
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" });
29+
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");
3030

3131
@BeforeClass
3232
public static void initializeTempDirectory() throws IOException {
@@ -65,7 +65,7 @@ public void checkAndCleanupIfRequired() throws IOException {
6565
}
6666
}
6767

68-
boolean deleteDirectory(File directoryToBeDeleted) {
68+
private boolean deleteDirectory(File directoryToBeDeleted) {
6969
File[] allContents = directoryToBeDeleted.listFiles();
7070

7171
if (allContents != null) {

0 commit comments

Comments
 (0)