Browse Source

ignore findbugs for notification IDs

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 6 years ago
parent
commit
5a99013f5e

+ 1 - 4
src/main/java/com/owncloud/android/jobs/MediaFoldersDetectionJob.java

@@ -58,6 +58,7 @@ import androidx.annotation.NonNull;
 import androidx.core.app.NotificationCompat;
 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
 
+@SuppressFBWarnings(value = "PREDICTABLE_RANDOM", justification = "Only used for notification id.")
 public class MediaFoldersDetectionJob extends Job {
     public static final String TAG = "MediaFoldersDetectionJob";
 
@@ -70,10 +71,6 @@ public class MediaFoldersDetectionJob extends Job {
 
     private static final String DISABLE_DETECTION_CLICK = "DISABLE_DETECTION_CLICK";
 
-    @SuppressFBWarnings(
-        value = "PREDICTABLE_RANDOM",
-        justification = "Only used for notification id, so predictability is no issue here."
-    )
     private Random randomId = new Random();
 
     @NonNull