mirror of
https://github.com/jlengrand/quarkus.git
synced 2026-03-10 08:41:22 +00:00
Merge pull request #4955 from gastaldi/deprecated
Avoid using deprecated File.toURL
This commit is contained in:
@@ -65,7 +65,7 @@ public class ClassLoaderCompiler {
|
||||
String path = url.getPath();
|
||||
if (path.startsWith("file:")) {
|
||||
path = path.substring(5, path.lastIndexOf('!'));
|
||||
urls.add(new File(URLDecoder.decode(path, StandardCharsets.UTF_8.name())).toURL());
|
||||
urls.add(new File(URLDecoder.decode(path, StandardCharsets.UTF_8.name())).toURI().toURL());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user