|
@@ -18,32 +18,21 @@
|
|
|
|
|
|
package de.butzlabben.missilewars.util.stats;
|
|
|
|
|
|
-import com.google.gson.Gson;
|
|
|
-import com.google.gson.GsonBuilder;
|
|
|
-import com.google.gson.JsonDeserializationContext;
|
|
|
-import com.google.gson.JsonDeserializer;
|
|
|
-import com.google.gson.JsonElement;
|
|
|
-import com.google.gson.JsonObject;
|
|
|
-import com.google.gson.JsonParseException;
|
|
|
-import com.google.gson.JsonSerializationContext;
|
|
|
-import com.google.gson.JsonSerializer;
|
|
|
+import com.google.gson.*;
|
|
|
import com.mojang.authlib.GameProfile;
|
|
|
import com.mojang.authlib.properties.Property;
|
|
|
import com.mojang.authlib.properties.PropertyMap;
|
|
|
import com.mojang.util.UUIDTypeAdapter;
|
|
|
+import lombok.Getter;
|
|
|
+import org.yaml.snakeyaml.external.biz.base64Coder.Base64Coder;
|
|
|
+
|
|
|
import java.io.BufferedReader;
|
|
|
import java.io.IOException;
|
|
|
import java.io.InputStreamReader;
|
|
|
import java.lang.reflect.Type;
|
|
|
import java.net.URL;
|
|
|
import java.net.URLConnection;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-import java.util.UUID;
|
|
|
-import lombok.Getter;
|
|
|
-import org.yaml.snakeyaml.external.biz.base64Coder.Base64Coder;
|
|
|
+import java.util.*;
|
|
|
|
|
|
/**
|
|
|
* @author Butzlabben
|
|
@@ -56,7 +45,7 @@ public class GameProfileBuilder {
|
|
|
.registerTypeAdapter(GameProfile.class, new GameProfileSerializer())
|
|
|
.registerTypeAdapter(PropertyMap.class, new PropertyMap.Serializer()).create();
|
|
|
@Getter
|
|
|
- private static final HashMap<UUID, CachedProfile> cache = new HashMap<>();
|
|
|
+ private static final Map<UUID, CachedProfile> cache = new HashMap<>();
|
|
|
private static final Object sync = new Object();
|
|
|
private static long cacheTime = -1L;
|
|
|
|