1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 00:20:32 +00:00

Suppress SonarLint NullPointerException warnings in CustomHlsPlaylistTracker

They seem to be wrong, by looking at the class work and at the return of CustomHlsPlaylistTracker's methods.
This commit is contained in:
TiA4f8R 2022-01-15 21:03:37 +01:00
parent 94f774b82d
commit d0637a8832
No known key found for this signature in database
GPG Key ID: E6D3E7F5949450DD

View File

@ -411,6 +411,7 @@ public final class CustomHlsPlaylistTracker implements HlsPlaylistTracker,
return anyExclusionFailed; return anyExclusionFailed;
} }
@SuppressWarnings("squid:S2259")
private HlsMediaPlaylist getLatestPlaylistSnapshot( private HlsMediaPlaylist getLatestPlaylistSnapshot(
@Nullable final HlsMediaPlaylist oldPlaylist, @Nullable final HlsMediaPlaylist oldPlaylist,
@NonNull final HlsMediaPlaylist loadedPlaylist) { @NonNull final HlsMediaPlaylist loadedPlaylist) {
@ -684,6 +685,7 @@ public final class CustomHlsPlaylistTracker implements HlsPlaylistTracker,
mediaPlaylistLoadable.type); mediaPlaylistLoadable.type);
} }
@SuppressWarnings("squid:S2259")
private void processLoadedPlaylist(final HlsMediaPlaylist loadedPlaylist, private void processLoadedPlaylist(final HlsMediaPlaylist loadedPlaylist,
final LoadEventInfo loadEventInfo) { final LoadEventInfo loadEventInfo) {
final HlsMediaPlaylist oldPlaylist = playlistSnapshot; final HlsMediaPlaylist oldPlaylist = playlistSnapshot;