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:
parent
94f774b82d
commit
d0637a8832
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user