From 598d3a8df3d94be19510eb82b6451388130e8867 Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Fri, 4 Jun 2021 15:00:44 +0200 Subject: [PATCH] refactor: changed spectators to final in LobbyConnection --- .../teamname/marvelous/server/lobbymanager/LobbyConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyConnection.java b/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyConnection.java index 719faca..34021de 100644 --- a/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyConnection.java +++ b/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyConnection.java @@ -13,7 +13,7 @@ import java.util.HashSet; public class LobbyConnection { private Lobby lobby; private Participant player1, player2; - private HashSet spectators; + private final HashSet spectators; /** * Creates a new LobbyConnection from a given lobby