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
1 changed files with 2 additions and 0 deletions

View File

@ -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;