mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
Organize imports.
This commit is contained in:
parent
46ea7c8500
commit
4727ee9bbf
9 changed files with 10 additions and 21 deletions
|
@ -14,13 +14,13 @@
|
|||
import java.util.List;
|
||||
|
||||
public final class JsonHWIDHandler extends HWIDHandler {
|
||||
private static final int TIMEOUT = Integer.parseInt(
|
||||
System.getProperty("launcher.connection.timeout", Integer.toString(1500)));
|
||||
private static final Gson gson = new Gson();
|
||||
|
||||
private final URL url;
|
||||
@SuppressWarnings("unused")
|
||||
private final URL url;
|
||||
private final URL urlBan;
|
||||
private final URL urlUnBan;
|
||||
@SuppressWarnings("unused")
|
||||
private final URL urlGet;
|
||||
|
||||
public class banRequest
|
||||
|
|
|
@ -1,13 +1,7 @@
|
|||
package ru.gravit.launchserver.auth.provider;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.nio.charset.Charset;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.UUID;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
|
@ -16,7 +10,6 @@
|
|||
import com.google.gson.JsonObject;
|
||||
import ru.gravit.launchserver.LaunchServer;
|
||||
import ru.gravit.utils.HTTPRequest;
|
||||
import ru.gravit.utils.helper.IOHelper;
|
||||
import ru.gravit.launcher.serialize.config.entry.BlockConfigEntry;
|
||||
|
||||
public final class MojangAuthProvider extends AuthProvider {
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.JsonArray;
|
||||
import com.google.gson.JsonParser;
|
||||
import ru.gravit.utils.helper.IOHelper;
|
||||
import ru.gravit.utils.helper.LogHelper;
|
||||
import ru.gravit.utils.helper.SecurityHelper;
|
||||
|
@ -22,7 +21,6 @@
|
|||
|
||||
public final class IndexAssetCommand extends Command {
|
||||
private static Gson gson = new Gson();
|
||||
private static JsonParser parser = new JsonParser();
|
||||
public static class IndexObject
|
||||
{
|
||||
long size;
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
import ru.gravit.launchserver.command.CommandException;
|
||||
|
||||
public final class UnindexAssetCommand extends Command {
|
||||
private static Gson gson = new Gson();
|
||||
private static JsonParser parser = new JsonParser();
|
||||
public UnindexAssetCommand(LaunchServer server) {
|
||||
super(server);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package ru.gravit.launcher.client;
|
||||
package ru.gravit.launcher;
|
||||
|
||||
import ru.gravit.launcher.LauncherAPI;
|
||||
|
|
@ -1,14 +1,14 @@
|
|||
package ru.gravit.launcher.client;
|
||||
package ru.gravit.launcher;
|
||||
|
||||
import javafx.concurrent.Task;
|
||||
import ru.gravit.launcher.LauncherAPI;
|
||||
import ru.gravit.launcher.client.ClientLauncher;
|
||||
import ru.gravit.launcher.hasher.FileNameMatcher;
|
||||
import ru.gravit.launcher.hasher.HashedDir;
|
||||
import ru.gravit.launcher.request.Request;
|
||||
import ru.gravit.launcher.request.update.LegacyLauncherRequest;
|
||||
import ru.gravit.launcher.request.websockets.RequestInterface;
|
||||
import ru.gravit.launcher.serialize.signed.SignedObjectHolder;
|
||||
import ru.gravit.utils.helper.CommonHelper;
|
||||
import ru.gravit.utils.helper.LogHelper;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -57,7 +57,7 @@ public void makeJsonRequest(RequestInterface request, Runnable callback)
|
|||
|
||||
}
|
||||
@LauncherAPI
|
||||
public void startTask(Task task)
|
||||
public void startTask(@SuppressWarnings("rawtypes") Task task)
|
||||
{
|
||||
try {
|
||||
worker.queue.put(task);
|
|
@ -1,4 +1,4 @@
|
|||
package ru.gravit.launcher.client;
|
||||
package ru.gravit.launcher;
|
||||
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package ru.gravit.launcher.client;
|
||||
package ru.gravit.launcher;
|
||||
|
||||
import ru.gravit.launcher.Launcher;
|
||||
import ru.gravit.launcher.LauncherAPI;
|
|
@ -1,6 +1,5 @@
|
|||
package ru.gravit.launcher.client;
|
||||
package ru.gravit.launcher;
|
||||
|
||||
import javafx.concurrent.Task;
|
||||
import ru.gravit.utils.helper.LogHelper;
|
||||
|
||||
import java.util.concurrent.BlockingQueue;
|
Loading…
Reference in a new issue