Steve - Test d'unicité de l'ISBN #14

Closed
steve.maingana wants to merge 2 commits from steve-2 into developpement
Showing only changes of commit 987db5ce7c - Show all commits

View File

@@ -30,7 +30,7 @@ public class Bibliotheque {
if (issues.length() < 1) { if (issues.length() < 1) {
System.out.println("valide"); System.out.println("valide");
for (Livre livre : this.getLesLivres()) { for (Livre livre : this.getLesLivres()) {
if (livre.toString().equals(b.toString())) return false; if (livre.getIsbn().equals(b.getIsbn())) return false;
} }
lesLivres.add(b); lesLivres.add(b);