correctif bug et ajout fonctionnalité
This commit is contained in:
@@ -40,7 +40,9 @@ public class GroupeNP implements Groupe {
|
||||
public GroupeNP(int id, String name, int min, int max, TypeGroupe type, Groupe pere){
|
||||
Objects.requireNonNull(name,"On ne peut pas créer un groupe dont le nom est null");
|
||||
this.id=id;
|
||||
this.nextId++;
|
||||
if(id>this.nextId){
|
||||
this.nextId=id;
|
||||
}
|
||||
this.name=name;
|
||||
this.min=min;
|
||||
this.max=max;
|
||||
|
Reference in New Issue
Block a user