mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
little code cleanup
This commit is contained in:
@@ -73,11 +73,9 @@ public class UrlClassLoader extends ClassLoader {
|
||||
@NotNull
|
||||
public static URL internProtocol(@NotNull URL url) {
|
||||
try {
|
||||
if ("file".equals(url.getProtocol())) {
|
||||
return new URL("file", url.getHost(), url.getPort(), url.getFile());
|
||||
}
|
||||
if ("jar".equals(url.getProtocol())) {
|
||||
return new URL("jar", url.getHost(), url.getPort(), url.getFile());
|
||||
final String protocol = url.getProtocol();
|
||||
if ("file".equals(protocol) || "jar".equals(protocol)) {
|
||||
return new URL(protocol, url.getHost(), url.getPort(), url.getFile());
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user