File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
spring-core/src/main/java/org/springframework/core/io Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2016 the original author or authors.
2
+ * Copyright 2002-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -229,12 +229,11 @@ public Resource createRelative(String relativePath) throws MalformedURLException
229
229
230
230
/**
231
231
* This implementation returns the name of the file that this URL refers to.
232
- * @see java.net.URL#getFile()
233
- * @see java.io.File#getName()
232
+ * @see java.net.URL#getPath()
234
233
*/
235
234
@ Override
236
235
public String getFilename () {
237
- return new File (this .url . getFile ()). getName ( );
236
+ return StringUtils . getFilename (this .cleanedUrl . getPath () );
238
237
}
239
238
240
239
/**
You can’t perform that action at this time.
0 commit comments