diff --git a/app/src/main/java/fi/sundae/bot/api/ActiveMatchesHandler.java b/app/src/main/java/fi/sundae/bot/api/ActiveMatchesHandler.java index 2c400ad..b861bbb 100644 --- a/app/src/main/java/fi/sundae/bot/api/ActiveMatchesHandler.java +++ b/app/src/main/java/fi/sundae/bot/api/ActiveMatchesHandler.java @@ -18,7 +18,8 @@ public ActiveMatchesHandler(Matchmaker matchmaker) { @Override public void handle(@NotNull Context ctx) throws Exception { - Gson gson = new GsonBuilder().registerTypeAdapter(Match.class, new Match.MatchSerializer()).create(); + Gson gson = + new GsonBuilder().registerTypeAdapter(Match.class, new Match.MatchSerializer()).create(); ctx.json(gson.toJson(MATCHMAKER.getActiveMatches())); } } diff --git a/app/src/main/java/fi/sundae/bot/tournament/Match.java b/app/src/main/java/fi/sundae/bot/tournament/Match.java index 69bb777..5876ab9 100644 --- a/app/src/main/java/fi/sundae/bot/tournament/Match.java +++ b/app/src/main/java/fi/sundae/bot/tournament/Match.java @@ -1,7 +1,6 @@ package fi.sundae.bot.tournament; import com.google.gson.*; - import java.awt.*; import java.io.IOException; import java.lang.reflect.Type; @@ -10,7 +9,6 @@ import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; - import net.dv8tion.jda.api.EmbedBuilder; import net.dv8tion.jda.api.entities.MessageEmbed; import net.dv8tion.jda.api.entities.channel.concrete.ThreadChannel; @@ -245,5 +243,4 @@ public JsonElement serialize(Match match, Type typeOfSrc, JsonSerializationConte return jsonObject; } } - }