From d6d002c2f60367963ed545a96362d3180dc000a7 Mon Sep 17 00:00:00 2001 From: zaxar163 Date: Sun, 2 Dec 2018 17:02:13 +0300 Subject: [PATCH] Formatting optimization... --- .../src/main/java/ru/gravit/utils/helper/EnvHelper.java | 6 +----- .../src/main/java/ru/gravit/utils/helper/JVMHelper.java | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/libLauncher/src/main/java/ru/gravit/utils/helper/EnvHelper.java b/libLauncher/src/main/java/ru/gravit/utils/helper/EnvHelper.java index c90d7e1c..175cae96 100644 --- a/libLauncher/src/main/java/ru/gravit/utils/helper/EnvHelper.java +++ b/libLauncher/src/main/java/ru/gravit/utils/helper/EnvHelper.java @@ -4,11 +4,7 @@ import java.util.Map; public class EnvHelper { - public static final String[] toTest; - - static { - toTest = new String[]{"_JAVA_OPTIONS", "_JAVA_OPTS", "JAVA_OPTS", "JAVA_OPTIONS"}; - } + public static final String[] toTest = {"_JAVA_OPTIONS", "_JAVA_OPTS", "JAVA_OPTS", "JAVA_OPTIONS"}; public static void addEnv(ProcessBuilder builder) { Map map = builder.environment(); diff --git a/libLauncher/src/main/java/ru/gravit/utils/helper/JVMHelper.java b/libLauncher/src/main/java/ru/gravit/utils/helper/JVMHelper.java index 678b0feb..6ec5ab62 100644 --- a/libLauncher/src/main/java/ru/gravit/utils/helper/JVMHelper.java +++ b/libLauncher/src/main/java/ru/gravit/utils/helper/JVMHelper.java @@ -64,7 +64,6 @@ public static OS byName(String name) { try { MethodHandles.publicLookup(); // Just to initialize class } catch (Throwable exc) { - LogHelper.error("Unsafe field is not initialized"); throw new InternalError(exc); } }