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;
|
||||
|
||||
@@ -50,6 +50,7 @@ import static org.mockito.Mockito.mock;
|
||||
* @author Juergen Hoeller
|
||||
* @author Arjen Poutsma
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
class PathResourceTests {
|
||||
|
||||
private static final String TEST_DIR =
|
||||
|
||||
Reference in New Issue
Block a user