From 1aa5243ae2e614a3257f7fef58e7a4ddecb3829a Mon Sep 17 00:00:00 2001 From: zaxar163 Date: Fri, 11 Jan 2019 18:06:24 +0400 Subject: [PATCH] [FIXED] Access rules in ServerWrapper agent. --- .../src/main/java/ru/gravit/launcher/server/ServerAgent.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ServerWrapper/src/main/java/ru/gravit/launcher/server/ServerAgent.java b/ServerWrapper/src/main/java/ru/gravit/launcher/server/ServerAgent.java index 2b248e36..e90e1f32 100644 --- a/ServerWrapper/src/main/java/ru/gravit/launcher/server/ServerAgent.java +++ b/ServerWrapper/src/main/java/ru/gravit/launcher/server/ServerAgent.java @@ -15,9 +15,9 @@ public class ServerAgent { private static boolean isAgentStarted = false; - public static Instrumentation inst; + public static Instrumentation inst = null; - public static final class StarterVisitor extends SimpleFileVisitor { + private static final class StarterVisitor extends SimpleFileVisitor { @Override public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { if (file.toFile().getName().endsWith(".jar")) addJVMClassPath(new JarFile(file.toFile()));