From 828e2f31317e4b343e3e65924b23f9ff5f590e88 Mon Sep 17 00:00:00 2001 From: Julian Kropff Date: Sun, 5 Apr 2026 11:21:27 +0200 Subject: [PATCH] Fix: checkstyle issues --- .../dbis/cs108/casono/server/domain/game/deck/Deck.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/ch/unibas/dmi/dbis/cs108/casono/server/domain/game/deck/Deck.java b/src/main/java/ch/unibas/dmi/dbis/cs108/casono/server/domain/game/deck/Deck.java index 5755192..f75a738 100644 --- a/src/main/java/ch/unibas/dmi/dbis/cs108/casono/server/domain/game/deck/Deck.java +++ b/src/main/java/ch/unibas/dmi/dbis/cs108/casono/server/domain/game/deck/Deck.java @@ -51,11 +51,10 @@ public class Deck { } /** - * Retrieves the current list of cards in the deck. This method returns a new LinkedList - * containing the cards, which allows for safe manipulation of the returned list without - * affecting the internal state of the deck. + * Sets the cards of the deck. This method replaces the internal list + * with a copy of the provided list. * - * @return A List of Card objects currently in the deck. + * @param cards the new list of cards to set */ public void setCards(List cards) { this.cards = new LinkedList<>(cards);