There was an error while loading. Please reload this page.
1 parent 1f3f9b1 commit 3de1f76Copy full SHA for 3de1f76
spring-core/src/main/java/org/springframework/core/io/FileUrlResource.java
@@ -90,15 +90,8 @@ public File getFile() throws IOException {
90
@Override
91
public boolean isWritable() {
92
try {
93
-URL url = getURL();
94
-if (ResourceUtils.isFileURL(url)) {
95
-// Proceed with file system resolution
96
-File file = getFile();
97
-return (file.canWrite() && !file.isDirectory());
98
-}
99
-else {
100
-return true;
101
+File file = getFile();
+return (file.canWrite() && !file.isDirectory());
102
}
103
catch (IOException ex) {
104
return false;
0 commit comments