Initial problem solving (identified by Intellij)

This commit is contained in:
2026-06-14 21:01:43 +02:00
parent e27a2e1b0c
commit bac4a6b7f5
69 changed files with 175 additions and 368 deletions
@@ -66,7 +66,7 @@ public class Game implements Serializable {
/**
* Queue containing the players who still have to choose their totem.
*/
private Queue<Player> totemChoiceQueue = new LinkedList<>();
private final Queue<Player> totemChoiceQueue = new LinkedList<>();
/**
* Assigns the selected totem to the specified player during the totem choice phase.
@@ -122,7 +122,7 @@ public class Game implements Serializable {
* Map tracking the players who are currently disconnected.
* Key: player; value: {@code true} if currently disconnected, {@code false} if reconnected.
*/
private Map<Player,Boolean> disconnectedPlayers = new HashMap<>();
private final Map<Player,Boolean> disconnectedPlayers = new HashMap<>();
/**
* Returns an unmodifiable view of the disconnected-players map.