Inline some variables

There is no point in `Type a = …; return a;`
This commit is contained in:
jvoisin
2019-06-08 15:47:15 +02:00
parent e0ac46cf44
commit def5f854fb
5 changed files with 6 additions and 12 deletions
@@ -281,9 +281,8 @@ public class TransferStatus {
@Override
public String toString() {
String builder = "TransferStatus-" + hashCode() + " [player: " + player.getId() + ", file: " +
return "TransferStatus-" + hashCode() + " [player: " + player.getId() + ", file: " +
file + ", terminated: " + terminated + ", active: " + active + "]";
return builder;
}
/**
@@ -31,8 +31,7 @@ public class XspfPlaylistExportHandler implements PlaylistExportHandler {
@Override
public SpecificPlaylist handle(int id, SpecificPlaylistProvider provider) throws Exception {
chameleon.playlist.xspf.Playlist playlist = createXsfpPlaylistFromDBId(id);
return playlist;
return createXsfpPlaylistFromDBId(id);
}
chameleon.playlist.xspf.Playlist createXsfpPlaylistFromDBId(int id) {
@@ -56,8 +56,7 @@ public class PlaylistUpnpProcessor extends UpnpContentProcessor <Playlist, Media
}
public List<Playlist> getAllItems() {
List<Playlist> playlists = getPlaylistService().getAllPlaylists();
return playlists;
return getPlaylistService().getAllPlaylists();
}
public Playlist getItemById(String id) throws Exception {