From c6b2d2e1d9b67494b595e4ff1cf503f23c8d020a 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 1a532aa1592..73f7b0d8176 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 09b2e5d0fb5febf1f260900093cc5835fcaaa301 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 73f7b0d8176..b931a072959 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.