Skip to content

Commit

Permalink
make deleteRecursiveOnExit() public
Browse files Browse the repository at this point in the history
  • Loading branch information
xzel23 committed Sep 19, 2024
1 parent 1059fbf commit 0c86419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utility/src/main/java/com/dua3/utility/io/IoUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ public static Path createSecureTempDirectoryAndDeleteOnExit(Path dir, String pre
*
* @param dir the path of the directory to be deleted recursively on JVM exit
*/
private static void deleteRecursiveOnExit(Path dir) {
public static void deleteRecursiveOnExit(Path dir) {
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
try {
deleteRecursive(dir);
Expand Down

0 comments on commit 0c86419

Please sign in to comment.