Organize imports.

This commit is contained in:
zaxar163 2018-11-25 21:23:57 +03:00
parent 46ea7c8500
commit 4727ee9bbf
9 changed files with 10 additions and 21 deletions

View file

@ -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

View file

@ -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 {

View file

@ -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;

View file

@ -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);

View file

@ -1,4 +1,4 @@
package ru.gravit.launcher.client;
package ru.gravit.launcher;
import ru.gravit.launcher.LauncherAPI;

View file

@ -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);

View file

@ -1,4 +1,4 @@
package ru.gravit.launcher.client;
package ru.gravit.launcher;
import java.util.concurrent.atomic.AtomicReference;

View file

@ -1,4 +1,4 @@
package ru.gravit.launcher.client;
package ru.gravit.launcher;
import ru.gravit.launcher.Launcher;
import ru.gravit.launcher.LauncherAPI;

View file

@ -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;