fix(DevWeb): ArrayList to List

This commit is contained in:
Lucàs
2024-05-01 01:11:47 +02:00
parent 68b7aa50ce
commit 4584afc82d
2 changed files with 3 additions and 3 deletions
@@ -252,7 +252,7 @@ public class Game implements Serializable {
*
* @param players les nouveaux joueurs
*/
public void setPlayers(ArrayList<Player> players) {
public void setPlayers(List<Player> players) {
this.players = players;
}
@@ -126,7 +126,7 @@ public class User implements Serializable {
this.nbRapidClicks = 0;
this.rapidClickPercentRate = 0;
}
public User(BigDecimal id, String username, String email, String password, Date birth, Gender gender, ArrayList<Player> playedGames) {
public User(BigDecimal id, String username, String email, String password, Date birth, Gender gender, List<Player> playedGames) {
if (!isValidBirthDate(birth)){
throw new IllegalArgumentException("La date de naissance n'est pas valide");
}
@@ -157,7 +157,7 @@ public class User implements Serializable {
* @param birth la date de naissance
* @param gender le genre
*/
public User(BigDecimal id, String username, String email, String password, Date birth, Gender gender, ArrayList<Player> playedGames, ArrayList<RecoveryPasswordToken> recoveryPasswordToken) {
public User(BigDecimal id, String username, String email, String password, Date birth, Gender gender, List<Player> playedGames, List<RecoveryPasswordToken> recoveryPasswordToken) {
if (!isValidBirthDate(birth)){
throw new IllegalArgumentException("La date de naissance n'est pas valide");
}