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