Kaydet (Commit) 25f31223 authored tarafından Julien Nabet's avatar Julien Nabet

Change <file>.toURL() to <file>.toURI().toURL()

üst ff21a388
...@@ -71,7 +71,7 @@ public final class TestEquals { ...@@ -71,7 +71,7 @@ public final class TestEquals {
} }
private static String toFileUrl(String path) throws MalformedURLException { private static String toFileUrl(String path) throws MalformedURLException {
String url = new File(path).toURL().toString(); String url = new File(path).toURI().toURL().toString();
String prefix = "file:/"; String prefix = "file:/";
if (url.startsWith(prefix) if (url.startsWith(prefix)
&& (url.length() == prefix.length() && (url.length() == prefix.length()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment