mirror of
https://github.com/kmitresse/Cards-Rush.git
synced 2026-07-09 13:27:45 +00:00
fix(DevWeb): ArrayList to List
This commit is contained in:
@@ -252,7 +252,7 @@ public class Game implements Serializable {
|
|||||||
*
|
*
|
||||||
* @param players les nouveaux joueurs
|
* @param players les nouveaux joueurs
|
||||||
*/
|
*/
|
||||||
public void setPlayers(ArrayList<Player> players) {
|
public void setPlayers(List<Player> players) {
|
||||||
this.players = players;
|
this.players = players;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ public class User implements Serializable {
|
|||||||
this.nbRapidClicks = 0;
|
this.nbRapidClicks = 0;
|
||||||
this.rapidClickPercentRate = 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)){
|
if (!isValidBirthDate(birth)){
|
||||||
throw new IllegalArgumentException("La date de naissance n'est pas valide");
|
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 birth la date de naissance
|
||||||
* @param gender le genre
|
* @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)){
|
if (!isValidBirthDate(birth)){
|
||||||
throw new IllegalArgumentException("La date de naissance n'est pas valide");
|
throw new IllegalArgumentException("La date de naissance n'est pas valide");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user