mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 08:30:44 +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:
parent
94f774b82d
commit
d0637a8832
@ -411,6 +411,7 @@ public final class CustomHlsPlaylistTracker implements HlsPlaylistTracker,
|
||||
return anyExclusionFailed;
|
||||
}
|
||||
|
||||
@SuppressWarnings("squid:S2259")
|
||||
private HlsMediaPlaylist getLatestPlaylistSnapshot(
|
||||
@Nullable final HlsMediaPlaylist oldPlaylist,
|
||||
@NonNull final HlsMediaPlaylist loadedPlaylist) {
|
||||
@ -684,6 +685,7 @@ public final class CustomHlsPlaylistTracker implements HlsPlaylistTracker,
|
||||
mediaPlaylistLoadable.type);
|
||||
}
|
||||
|
||||
@SuppressWarnings("squid:S2259")
|
||||
private void processLoadedPlaylist(final HlsMediaPlaylist loadedPlaylist,
|
||||
final LoadEventInfo loadEventInfo) {
|
||||
final HlsMediaPlaylist oldPlaylist = playlistSnapshot;
|
||||
|
Loading…
Reference in New Issue
Block a user