From c6b2d2e1d9b67494b595e4ff1cf503f23c8d020a Mon Sep 17 00:00:00 2001 From: Stefano Cordio Date: Mon, 29 May 2023 22:49:41 +0200 Subject: [PATCH] Fix `FileSystemUtils::deleteRecursively` Javadoc See gh-30554 --- .../main/java/org/springframework/util/FileSystemUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/util/FileSystemUtils.java b/spring-core/src/main/java/org/springframework/util/FileSystemUtils.java index 1a532aa159..73f7b0d817 100644 --- a/spring-core/src/main/java/org/springframework/util/FileSystemUtils.java +++ b/spring-core/src/main/java/org/springframework/util/FileSystemUtils.java @@ -68,10 +68,10 @@ public abstract class FileSystemUtils { } /** - * Delete the supplied {@link File} — for directories, + * Delete the supplied {@link Path} — for directories, * recursively delete any nested directories or files as well. - * @param root the root {@code File} to delete - * @return {@code true} if the {@code File} existed and was deleted, + * @param root the root {@code Path} to delete + * @return {@code true} if the {@code Path} existed and was deleted, * or {@code false} if it did not exist * @throws IOException in the case of I/O errors * @since 5.0