We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5de4f75 commit b7883c3Copy full SHA for b7883c3
spring-core/src/main/java/org/springframework/core/io/FileUrlResource.java
@@ -89,15 +89,8 @@ public File getFile() throws IOException {
89
@Override
90
public boolean isWritable() {
91
try {
92
- URL url = getURL();
93
- if (ResourceUtils.isFileURL(url)) {
94
- // Proceed with file system resolution
95
- File file = getFile();
96
- return (file.canWrite() && !file.isDirectory());
97
- }
98
- else {
99
- return true;
100
+ File file = getFile();
+ return (file.canWrite() && !file.isDirectory());
101
}
102
catch (IOException ex) {
103
return false;
0 commit comments