refactor: changed spectators to final in LobbyConnection

This commit is contained in:
Yannik Bretschneider 2021-06-04 15:00:44 +02:00
parent d4460e6c0f
commit 598d3a8df3

View File

@ -13,7 +13,7 @@ import java.util.HashSet;
public class LobbyConnection {
private Lobby lobby;
private Participant player1, player2;
private HashSet<Participant> spectators;
private final HashSet<Participant> spectators;
/**
* Creates a new LobbyConnection from a given lobby