mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-22 11:02:35 +01: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