Compare commits

..

No commits in common. "9e3516aacb7d2f0b41ea2ecfe128c00a8c1e225d" and "e51d5aa67839d5a5fff67455d237d238e7e1ef08" have entirely different histories.

1 changed files with 5 additions and 7 deletions

View File

@ -74,9 +74,7 @@ public class Album {
public void removeArtist(Artist artist) {
albumArtists.removeIf(aa ->
aa.getArtist() != null &&
aa.getArtist().getId() != null &&
aa.getArtist().getId().equals(artist.getId())
aa.getArtist() != null && aa.getArtist().getId().equals(artist.getId())
);
}
@ -98,9 +96,9 @@ public class Album {
}
public void removeGenre(Genre genre) {
ag.getGenre() != null &&
ag.getGenre().getId() != null &&
ag.getGenre().getId().equals(genre.getId())
albumGenres.removeIf(ag ->
ag.getGenre() != null && ag.getGenre().getId().equals(genre.getId())
);
}
// Método conveniente para pegar os gêneros
@ -221,4 +219,4 @@ public class Album {
", year=" + year +
'}';
}
}
}