fix: changed lists in MessageRelay to final

This commit is contained in:
Yannik Bretschneider 2021-04-29 20:30:02 +02:00
parent b4415fdb53
commit 074276e664

View File

@ -6,8 +6,8 @@ import uulm.teamname.marvelous.server.Lobby.Lobby;
import java.util.HashMap; import java.util.HashMap;
public class MessageRelay { public class MessageRelay {
private HashMap<WebSocket, Lobby> lobbies; private final HashMap<WebSocket, Lobby> lobbies;
private HashMap<Lobby, WebSocket> sockets; private final HashMap<Lobby, WebSocket> sockets;
public MessageRelay() { public MessageRelay() {
this.lobbies = new HashMap<>(); this.lobbies = new HashMap<>();