From 53f8415e9b898942b3995532d66f0ccb844f7f24 Mon Sep 17 00:00:00 2001 From: Stypox Date: Fri, 18 Mar 2022 23:57:11 +0100 Subject: [PATCH] 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. --- .../org/schabi/newpipe/local/LocalItemListAdapter.java | 2 ++ app/src/main/java/org/schabi/newpipe/player/Player.java | 1 + .../schabi/newpipe/player/playqueue/PlayQueueItem.java | 1 + .../org/schabi/newpipe/streams/Mp4FromDashWriter.java | 1 + .../main/java/org/schabi/newpipe/streams/WebMWriter.java | 1 + checkstyle/suppressions.xml | 8 +------- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/local/LocalItemListAdapter.java b/app/src/main/java/org/schabi/newpipe/local/LocalItemListAdapter.java index 5d81c0069..05e2fdac0 100644 --- a/app/src/main/java/org/schabi/newpipe/local/LocalItemListAdapter.java +++ b/app/src/main/java/org/schabi/newpipe/local/LocalItemListAdapter.java @@ -228,6 +228,7 @@ public class LocalItemListAdapter extends RecyclerView.Adapter - - - +