mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
IDEA Code Refractor
This commit is contained in:
parent
87669d1d46
commit
d2916d180d
6 changed files with 7 additions and 6 deletions
|
@ -94,7 +94,6 @@ public void check0(HWID hwid, String username) throws HWIDException {
|
|||
}
|
||||
if (needWrite) {
|
||||
writeHWID(hwid, username, c);
|
||||
return;
|
||||
}
|
||||
}
|
||||
} catch (SQLException e) {
|
||||
|
|
|
@ -14,17 +14,17 @@
|
|||
|
||||
public class BuildHookManager {
|
||||
@FunctionalInterface
|
||||
public static interface ZipBuildHook {
|
||||
public interface ZipBuildHook {
|
||||
void build(ZipOutputStream context);
|
||||
}
|
||||
|
||||
@FunctionalInterface
|
||||
public static interface BuildHook {
|
||||
public interface BuildHook {
|
||||
void build(BuildContext context);
|
||||
}
|
||||
|
||||
@FunctionalInterface
|
||||
public static interface Transformer {
|
||||
public interface Transformer {
|
||||
byte[] transform(byte[] input, String classname, JARLauncherBinary data);
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
public class NodeTransformer implements Transformer {
|
||||
@FunctionalInterface
|
||||
public static interface ClassNodeTransformer {
|
||||
public interface ClassNodeTransformer {
|
||||
void transform(ClassNode node, String classname, JARLauncherBinary data);
|
||||
}
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ public ServerSocketHandler(LaunchServer server, SessionManager sessionManager) {
|
|||
this.server = server;
|
||||
threadPool = new ThreadPoolExecutor(server.config.threadCoreCount, Integer.MAX_VALUE,
|
||||
server.config.threadCount, TimeUnit.SECONDS,
|
||||
new SynchronousQueue<Runnable>(),
|
||||
new SynchronousQueue<>(),
|
||||
THREAD_FACTORY);
|
||||
this.sessionManager = sessionManager;
|
||||
}
|
||||
|
|
|
@ -46,6 +46,7 @@ public static long getObjSize(Object obj) {
|
|||
public static Boolean isAutoloadLibraries = Boolean.getBoolean(System.getProperty("serverwrapper,agentlibrariesload", "false"));
|
||||
public static Boolean isAgentProxy = Boolean.getBoolean(System.getProperty("serverwrapper,agentproxy", "false"));
|
||||
|
||||
@SuppressWarnings("JavaLangInvokeHandleSignature")
|
||||
public static void premain(String agentArgument, Instrumentation instrumentation) {
|
||||
LogHelper.debug("Server Agent");
|
||||
inst = instrumentation;
|
||||
|
|
|
@ -82,6 +82,7 @@ public static boolean loopAuth(ServerWrapper wrapper, int count, int sleeptime)
|
|||
return false;
|
||||
}
|
||||
|
||||
@SuppressWarnings("ConfusingArgumentToVarargsMethod")
|
||||
public static void main(String[] args) throws Throwable {
|
||||
ServerWrapper wrapper = new ServerWrapper();
|
||||
LogHelper.printVersion("ServerWrapper");
|
||||
|
|
Loading…
Reference in a new issue