Deprecate PathResource variant
This commit deprecates the `PathResource` implementation variant in favor of `FileSystemResource`. This was already pointing to `FileSystemResource` as of Spring Framework 5.1 and we now consider this variant as deprecated. Closes gh-34206
This commit is contained in:
@@ -56,7 +56,9 @@ import org.springframework.util.Assert;
|
||||
* @see java.nio.file.Path
|
||||
* @see java.nio.file.Files
|
||||
* @see FileSystemResource
|
||||
* @deprecated since 7.0 in favor of {@link FileSystemResource}
|
||||
*/
|
||||
@Deprecated(since = "7.0", forRemoval = true)
|
||||
public class PathResource extends AbstractResource implements WritableResource {
|
||||
|
||||
private final Path path;
|
||||
|
||||
Reference in New Issue
Block a user