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
1 changed files with 2 additions and 2 deletions

View File

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