From c38b4b9b867bc11d4d4e6283ac9f028efdd88537 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Thu, 21 Jan 2016 16:40:46 +0100 Subject: [PATCH] Some minor syntax formatting. --- .../src/main/java/mage/server/game/GamesRoomImpl.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Mage.Server/src/main/java/mage/server/game/GamesRoomImpl.java b/Mage.Server/src/main/java/mage/server/game/GamesRoomImpl.java index 157b4052b9..27d0888704 100644 --- a/Mage.Server/src/main/java/mage/server/game/GamesRoomImpl.java +++ b/Mage.Server/src/main/java/mage/server/game/GamesRoomImpl.java @@ -50,7 +50,6 @@ import mage.server.TableManager; import mage.server.User; import mage.server.UserManager; import mage.server.record.UserStats; -import mage.server.record.UserStatsRepository; import mage.server.tournament.TournamentManager; import mage.server.util.ConfigSettings; import mage.server.util.ThreadExecutor; @@ -116,12 +115,12 @@ public class GamesRoomImpl extends RoomImpl implements GamesRoom, Serializable { } private static String userStatsToString(UserStatsProto proto) { - List builders = new ArrayList(); + List builders = new ArrayList<>(); if (proto.getMatches() > 0) { StringBuilder builder = new StringBuilder(); builder.append("Matches:"); builder.append(proto.getMatches()); - List quit = new ArrayList(); + List quit = new ArrayList<>(); if (proto.getMatchesIdleTimeout() > 0) { quit.add("I:" + Integer.toString(proto.getMatchesIdleTimeout())); } @@ -142,7 +141,7 @@ public class GamesRoomImpl extends RoomImpl implements GamesRoom, Serializable { StringBuilder builder = new StringBuilder(); builder.append("Tourneys:"); builder.append(proto.getTourneys()); - List quit = new ArrayList(); + List quit = new ArrayList<>(); if (proto.getTourneysQuitDuringDrafting() > 0) { quit.add("D:" + Integer.toString(proto.getTourneysQuitDuringDrafting())); }