mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
changes after review IDEA-CR-26729
This commit is contained in:
@@ -21,6 +21,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.URISyntaxException;
|
||||
@@ -72,7 +73,7 @@ class JarLoader extends Loader {
|
||||
|
||||
private static String urlToFilePath(URL url) {
|
||||
try {
|
||||
return url.toURI().getPath();
|
||||
return new File(url.toURI()).getPath();
|
||||
} catch (URISyntaxException ex) {
|
||||
return url.getPath();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user