mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
changed to not use deprecated toURL()
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ public class StandardEvaluationContext implements EvaluationContext {
|
||||
while (st.hasMoreTokens()) {
|
||||
String element = st.nextToken();
|
||||
try {
|
||||
urls.add(new File(element).toURL());
|
||||
urls.add(new File(element).toURI().toURL());
|
||||
} catch (MalformedURLException e) {
|
||||
throw new RuntimeException("Invalid element in classpath " + element);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user