From 0adad1059513133e34e67d3d6ad776ce684177dc Mon Sep 17 00:00:00 2001 From: Stefano Cordio Date: Mon, 29 May 2023 22:49:41 +0200 Subject: [PATCH 1/2] 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 From 4e696db922fe45b83a18c02ec0934df59b695cba Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 30 May 2023 09:13:29 +0200 Subject: [PATCH 2/2] Update copyright year of changed file See gh-30554 --- .../src/main/java/org/springframework/util/FileSystemUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 73f7b0d817..b931a07295 100644 --- a/spring-core/src/main/java/org/springframework/util/FileSystemUtils.java +++ b/spring-core/src/main/java/org/springframework/util/FileSystemUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.