only: minor dead
This commit is contained in:
parent
565791a899
commit
ebdc555a5e
|
@ -1,6 +1,5 @@
|
||||||
package com.rusefi.core.ui;
|
package com.rusefi.core.ui;
|
||||||
|
|
||||||
import com.rusefi.core.ui.AutoupdateUtil;
|
|
||||||
import com.rusefi.autoupdate.ReportedIOException;
|
import com.rusefi.autoupdate.ReportedIOException;
|
||||||
import com.rusefi.core.net.ConnectionAndMeta;
|
import com.rusefi.core.net.ConnectionAndMeta;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
@ -12,7 +11,6 @@ import java.io.*;
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.net.URLClassLoader;
|
import java.net.URLClassLoader;
|
||||||
import java.net.URLStreamHandlerFactory;
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
public class AutoupdateUtil {
|
public class AutoupdateUtil {
|
||||||
|
@ -81,13 +79,11 @@ public class AutoupdateUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class DynamicForResourcesURLClassLoader extends URLClassLoader {
|
private static class DynamicForResourcesURLClassLoader extends URLClassLoader {
|
||||||
|
public DynamicForResourcesURLClassLoader(ClassLoader parent ) {
|
||||||
|
super(new URL[ 0 ], parent );
|
||||||
|
}
|
||||||
|
|
||||||
public DynamicForResourcesURLClassLoader( URL[] urls, ClassLoader parent ) { super( urls, parent ); }
|
// public morozov pattern: making protected public
|
||||||
|
|
||||||
public DynamicForResourcesURLClassLoader( URL[] urls ) { super( urls ); }
|
|
||||||
|
|
||||||
public DynamicForResourcesURLClassLoader( URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory ) { super( urls, parent, factory ); }
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addURL( URL url ) {
|
public void addURL( URL url ) {
|
||||||
super.addURL( url );
|
super.addURL( url );
|
||||||
|
@ -107,7 +103,7 @@ public class AutoupdateUtil {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final DynamicForResourcesURLClassLoader dynamicResourcesLoader = new DynamicForResourcesURLClassLoader( new URL[ 0 ], AutoupdateUtil.class.getClassLoader() );
|
private static final DynamicForResourcesURLClassLoader dynamicResourcesLoader = new DynamicForResourcesURLClassLoader(AutoupdateUtil.class.getClassLoader() );
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public static URLClassLoader getClassLoaderByJar(String jar) throws MalformedURLException {
|
public static URLClassLoader getClassLoaderByJar(String jar) throws MalformedURLException {
|
||||||
|
|
Loading…
Reference in New Issue