mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 17:11:39 +03:00
Formatting optimization...
This commit is contained in:
parent
2676cd0dde
commit
d6d002c2f6
2 changed files with 1 additions and 6 deletions
|
@ -4,11 +4,7 @@
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public class EnvHelper {
|
public class EnvHelper {
|
||||||
public static final String[] toTest;
|
public static final String[] toTest = {"_JAVA_OPTIONS", "_JAVA_OPTS", "JAVA_OPTS", "JAVA_OPTIONS"};
|
||||||
|
|
||||||
static {
|
|
||||||
toTest = new String[]{"_JAVA_OPTIONS", "_JAVA_OPTS", "JAVA_OPTS", "JAVA_OPTIONS"};
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void addEnv(ProcessBuilder builder) {
|
public static void addEnv(ProcessBuilder builder) {
|
||||||
Map<String, String> map = builder.environment();
|
Map<String, String> map = builder.environment();
|
||||||
|
|
|
@ -64,7 +64,6 @@ public static OS byName(String name) {
|
||||||
try {
|
try {
|
||||||
MethodHandles.publicLookup(); // Just to initialize class
|
MethodHandles.publicLookup(); // Just to initialize class
|
||||||
} catch (Throwable exc) {
|
} catch (Throwable exc) {
|
||||||
LogHelper.error("Unsafe field is not initialized");
|
|
||||||
throw new InternalError(exc);
|
throw new InternalError(exc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue