Use @SuppressWarnings for checkstyle suppressions & warnings

It's better to use @SuppressWarnings instead of the suppressions file, so that the warning suppression is at the place where it acts.
This commit is contained in:
Stypox 2022-03-18 23:57:11 +01:00
parent b1690ca60d
commit 8cc890d799
6 changed files with 7 additions and 7 deletions

View file

@ -682,6 +682,7 @@ public final class Player implements
//////////////////////////////////////////////////////////////////////////*/
//region Playback initialization via intent
@SuppressWarnings("MethodLength")
public void handleIntent(@NonNull final Intent intent) {
// fail fast if no play queue was provided
final String queueCache = intent.getStringExtra(PLAY_QUEUE_KEY);

View file

@ -52,6 +52,7 @@ public class PlayQueueItem implements Serializable {
item.getUploaderUrl(), item.getStreamType());
}
@SuppressWarnings("ParameterNumber")
private PlayQueueItem(@Nullable final String name, @Nullable final String url,
final int serviceId, final long duration,
@Nullable final String thumbnailUrl, @Nullable final String uploader,