We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7070263 commit 9fd7b63Copy full SHA for 9fd7b63
src/ch/epfl/chacun/gui/PlayersUI.java
@@ -14,6 +14,7 @@
14
import java.util.ArrayList;
15
import java.util.List;
16
import java.util.Map;
17
+import java.util.Objects;
18
19
/**
20
* This class represents the graphical representation
@@ -54,6 +55,7 @@ private PlayersUI() {
54
55
*/
56
public static Node create(ObservableValue<GameState> gameStateO, TextMaker textMaker) {
57
58
+ Objects.requireNonNull(textMaker);
59
ObservableValue<Map<PlayerColor, Integer>> pointsO = gameStateO.map(gState -> gState.messageBoard().points());
60
61
// create a new vbox that will be used to align elements (like players)
0 commit comments