mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix nullness checker warnings
PiperOrigin-RevId: 307570994
This commit is contained in:
parent
118f0b3938
commit
1ab5923f27
2 changed files with 2 additions and 4 deletions
|
|
@ -158,8 +158,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||||
// Copy the new streams back into the streams array.
|
// Copy the new streams back into the streams array.
|
||||||
System.arraycopy(newStreams, 0, streams, 0, newStreams.length);
|
System.arraycopy(newStreams, 0, streams, 0, newStreams.length);
|
||||||
// Update the local state.
|
// Update the local state.
|
||||||
enabledPeriods = new MediaPeriod[enabledPeriodsList.size()];
|
enabledPeriods = enabledPeriodsList.toArray(new MediaPeriod[0]);
|
||||||
enabledPeriodsList.toArray(enabledPeriods);
|
|
||||||
compositeSequenceableLoader =
|
compositeSequenceableLoader =
|
||||||
compositeSequenceableLoaderFactory.createCompositeSequenceableLoader(enabledPeriods);
|
compositeSequenceableLoaderFactory.createCompositeSequenceableLoader(enabledPeriods);
|
||||||
return positionUs;
|
return positionUs;
|
||||||
|
|
|
||||||
|
|
@ -135,8 +135,7 @@ public final class SubripDecoder extends SimpleSubtitleDecoder {
|
||||||
cues.add(Cue.EMPTY);
|
cues.add(Cue.EMPTY);
|
||||||
}
|
}
|
||||||
|
|
||||||
Cue[] cuesArray = new Cue[cues.size()];
|
Cue[] cuesArray = cues.toArray(new Cue[0]);
|
||||||
cues.toArray(cuesArray);
|
|
||||||
long[] cueTimesUsArray = cueTimesUs.toArray();
|
long[] cueTimesUsArray = cueTimesUs.toArray();
|
||||||
return new SubripSubtitle(cuesArray, cueTimesUsArray);
|
return new SubripSubtitle(cuesArray, cueTimesUsArray);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue