Use Java Files utilities in FileCopyUtils#36221
Use Java Files utilities in FileCopyUtils#36221jhoeller merged 1 commit intospring-projects:mainfrom
Conversation
Use helpers from java.nio.file.Files for some methods in FileCopyUtils. Additionally, add unit tests for the various file-related methods. Signed-off-by: Patrick Strawderman <pstrawderman@netflix.com>
ff2628b to
ffd8f2e
Compare
|
@jhoeller should we deprecate some of those utility methods as a result? We've done that in the past when Java upgrades turn those into one-liners. |
|
For completeness, I've also applied consistent stream closing through try-with-resources in #36223 and aligned 6.2.16 in #36224. As for deprecating some methods, most of them do not provide much additional anymore indeed. However, they are quite old and potentially called from many parts of the ecosystem, so I'd rather leave them in place - not least of it all, for their consistent closing of streams in FWIW, once we have a JDK 25 baseline, we can use |
Use helpers from java.nio.file.Files for some methods in FileCopyUtils.
Additionally, add unit tests for the various file-related methods.