Minor formatting.

This commit is contained in:
LevelX2 2014-02-20 08:12:18 +01:00
parent 8c081b436e
commit e346c6903f
2 changed files with 8 additions and 8 deletions

View file

@ -88,12 +88,12 @@ public class User {
this.connectionTime = new Date();
this.lastActivity = new Date();
this.tables = new ConcurrentHashMap<UUID, Table>();
this.gameSessions = new ConcurrentHashMap<UUID, GameSession>();
this.draftSessions = new ConcurrentHashMap<UUID, DraftSession>();
this.tournamentSessions = new ConcurrentHashMap<UUID, TournamentSession>();
this.constructing = new ConcurrentHashMap<UUID, TournamentSession>();
this.sideboarding = new ConcurrentHashMap<UUID, Deck>();
this.tables = new ConcurrentHashMap<>();
this.gameSessions = new ConcurrentHashMap<>();
this.draftSessions = new ConcurrentHashMap<>();
this.tournamentSessions = new ConcurrentHashMap<>();
this.constructing = new ConcurrentHashMap<>();
this.sideboarding = new ConcurrentHashMap<>();
this.sessionId = "";
}
@ -180,7 +180,7 @@ public class User {
}
public void showUserMessage(final String titel, String message) {
List<String> messageData = new LinkedList<String>();
List<String> messageData = new LinkedList<>();
messageData.add(titel);
messageData.add(message);
fireCallback(new ClientCallback("showUserMessage", null, messageData ));

View file

@ -64,7 +64,7 @@ public class UserManager {
}, 60, 60, TimeUnit.SECONDS);
}
private final ConcurrentHashMap<UUID, User> users = new ConcurrentHashMap<UUID, User>();
private final ConcurrentHashMap<UUID, User> users = new ConcurrentHashMap<>();
public User createUser(String userName, String host) {
if (findUser(userName) != null) {