Use Collection.isEmpty (#10525)
Fixes 47 SAT UseCollectionIsEmpty findings. Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -375,7 +375,7 @@ public class UpnpXMLParser {
|
||||
entries.add(new UpnpEntry(id, refId, parentId, upnpClass.toString()).withTitle(title.toString())
|
||||
.withAlbum(album.toString()).withAlbumArtUri(albumArtUri.toString())
|
||||
.withCreator(creator.toString())
|
||||
.withArtist(artistList.size() > 0 ? artistList.get(0) : artist.toString())
|
||||
.withArtist(!artistList.isEmpty() ? artistList.get(0) : artist.toString())
|
||||
.withPublisher(publisher.toString()).withGenre(genre.toString()).withTrackNumber(trackNumberVal)
|
||||
.withResList(resList));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user