Compare commits
No commits in common. "9e3516aacb7d2f0b41ea2ecfe128c00a8c1e225d" and "e51d5aa67839d5a5fff67455d237d238e7e1ef08" have entirely different histories.
9e3516aacb
...
e51d5aa678
|
|
@ -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 só os gêneros
|
||||
|
|
@ -221,4 +219,4 @@ public class Album {
|
|||
", year=" + year +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue