mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-08 16:19:48 +00:00
Optimize NIO path resolution in PathEditor
Closes gh-35304
This commit is contained in:
+1
-1
@@ -103,7 +103,7 @@ public class PathEditor extends PropertyEditorSupport {
|
||||
if (resource == null) {
|
||||
setValue(null);
|
||||
}
|
||||
else if (nioPathCandidate && !resource.exists()) {
|
||||
else if (nioPathCandidate && (!resource.isFile() || !resource.exists())) {
|
||||
setValue(Paths.get(text).normalize());
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user