From bc4f0c699fba3265cfb4aaef3370ebc81d36249b Mon Sep 17 00:00:00 2001 From: TobiGr Date: Wed, 2 Aug 2023 20:43:01 +0200 Subject: [PATCH] Ignore false positive inspection --- .../java/org/schabi/newpipe/player/playqueue/PlayQueue.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/playqueue/PlayQueue.java b/app/src/main/java/org/schabi/newpipe/player/playqueue/PlayQueue.java index 4c6230964..cfa2ab316 100644 --- a/app/src/main/java/org/schabi/newpipe/player/playqueue/PlayQueue.java +++ b/app/src/main/java/org/schabi/newpipe/player/playqueue/PlayQueue.java @@ -539,7 +539,8 @@ public abstract class PlayQueue implements Serializable { public boolean equalStreamsAndIndex(@Nullable final PlayQueue other) { if (equalStreams(other)) { - return other.getIndex() == getIndex(); + //noinspection ConstantConditions + return other.getIndex() == getIndex(); //NOSONAR: other is not null } return false; }