mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
Удалены устаревшие методы
This commit is contained in:
parent
ec3a1d9bb0
commit
4c629fb930
3 changed files with 5 additions and 18 deletions
|
@ -151,6 +151,7 @@ public static void main(String... args) throws Throwable {
|
|||
JVMHelper.checkStackTrace(LauncherEngine.class);
|
||||
JVMHelper.verifySystemProperties(Launcher.class, true);
|
||||
EnvHelper.checkDangerousParametrs();
|
||||
if(!LauncherAgent.isStarted()) throw new SecurityException("JavaAgent not set");
|
||||
LogHelper.printVersion("Launcher");
|
||||
// Start Launcher
|
||||
Instant start = Instant.now();
|
||||
|
|
|
@ -50,4 +50,8 @@ public static void premain(String agentArgument, Instrumentation instrumentation
|
|||
}
|
||||
}
|
||||
}
|
||||
public static boolean isStarted()
|
||||
{
|
||||
return isAgentStarted;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -71,18 +71,6 @@ public static OS byName(String name) {
|
|||
}
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
|
||||
public static void addClassPath(URL url) {
|
||||
throw new IllegalArgumentException("Method Deprecated");
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
|
||||
public static void addNativePath(Path path) {
|
||||
throw new IllegalArgumentException("Method Deprecated");
|
||||
}
|
||||
|
||||
|
||||
public static void appendVars(ProcessBuilder builder, Map<String, String> vars) {
|
||||
builder.environment().putAll(vars);
|
||||
|
@ -106,12 +94,6 @@ public static void fullGC() {
|
|||
LogHelper.debug("Used heap: %d MiB", RUNTIME.totalMemory() - RUNTIME.freeMemory() >> 20);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
|
||||
public static Certificate[] getCertificates(String resource) {
|
||||
throw new IllegalArgumentException("Method Deprecated");
|
||||
}
|
||||
|
||||
|
||||
public static String[] getClassPath() {
|
||||
return System.getProperty("java.class.path").split(File.pathSeparator);
|
||||
|
|
Loading…
Reference in a new issue