mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Change some annotations placement Checkerframework now warns about.
PiperOrigin-RevId: 307764457
This commit is contained in:
parent
6f2891e5c4
commit
1031dae19b
5 changed files with 6 additions and 6 deletions
|
|
@ -89,7 +89,7 @@ public class DefaultRenderersFactory implements RenderersFactory {
|
||||||
private long allowedVideoJoiningTimeMs;
|
private long allowedVideoJoiningTimeMs;
|
||||||
private boolean enableDecoderFallback;
|
private boolean enableDecoderFallback;
|
||||||
private MediaCodecSelector mediaCodecSelector;
|
private MediaCodecSelector mediaCodecSelector;
|
||||||
@MediaCodecRenderer.MediaCodecOperationMode private int mediaCodecOperationMode;
|
private @MediaCodecRenderer.MediaCodecOperationMode int mediaCodecOperationMode;
|
||||||
|
|
||||||
/** @param context A {@link Context}. */
|
/** @param context A {@link Context}. */
|
||||||
public DefaultRenderersFactory(Context context) {
|
public DefaultRenderersFactory(Context context) {
|
||||||
|
|
|
||||||
|
|
@ -402,7 +402,7 @@ public final class AdsMediaSource extends CompositeMediaSource<MediaPeriodId> {
|
||||||
private final MediaSource adMediaSource;
|
private final MediaSource adMediaSource;
|
||||||
private final List<MaskingMediaPeriod> activeMediaPeriods;
|
private final List<MaskingMediaPeriod> activeMediaPeriods;
|
||||||
|
|
||||||
@MonotonicNonNull private Timeline timeline;
|
private @MonotonicNonNull Timeline timeline;
|
||||||
|
|
||||||
public AdMediaSourceHolder(MediaSource adMediaSource) {
|
public AdMediaSourceHolder(MediaSource adMediaSource) {
|
||||||
this.adMediaSource = adMediaSource;
|
this.adMediaSource = adMediaSource;
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ public final class InitializationChunk extends Chunk {
|
||||||
|
|
||||||
private final ChunkExtractorWrapper extractorWrapper;
|
private final ChunkExtractorWrapper extractorWrapper;
|
||||||
|
|
||||||
@MonotonicNonNull private TrackOutputProvider trackOutputProvider;
|
private @MonotonicNonNull TrackOutputProvider trackOutputProvider;
|
||||||
private long nextLoadPosition;
|
private long nextLoadPosition;
|
||||||
private volatile boolean loadCanceled;
|
private volatile boolean loadCanceled;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -461,8 +461,8 @@ public final class TtmlDecoder extends SimpleSubtitleDecoder {
|
||||||
return parentStyleIds.isEmpty() ? new String[0] : Util.split(parentStyleIds, "\\s+");
|
return parentStyleIds.isEmpty() ? new String[0] : Util.split(parentStyleIds, "\\s+");
|
||||||
}
|
}
|
||||||
|
|
||||||
@PolyNull
|
private @PolyNull TtmlStyle parseStyleAttributes(
|
||||||
private TtmlStyle parseStyleAttributes(XmlPullParser parser, @PolyNull TtmlStyle style) {
|
XmlPullParser parser, @PolyNull TtmlStyle style) {
|
||||||
int attributeCount = parser.getAttributeCount();
|
int attributeCount = parser.getAttributeCount();
|
||||||
for (int i = 0; i < attributeCount; i++) {
|
for (int i = 0; i < attributeCount; i++) {
|
||||||
String attributeValue = parser.getAttributeValue(i);
|
String attributeValue = parser.getAttributeValue(i);
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||||
private final HashMap<String, Integer> nodeStartsByRegion;
|
private final HashMap<String, Integer> nodeStartsByRegion;
|
||||||
private final HashMap<String, Integer> nodeEndsByRegion;
|
private final HashMap<String, Integer> nodeEndsByRegion;
|
||||||
|
|
||||||
@MonotonicNonNull private List<TtmlNode> children;
|
private @MonotonicNonNull List<TtmlNode> children;
|
||||||
|
|
||||||
public static TtmlNode buildTextNode(String text) {
|
public static TtmlNode buildTextNode(String text) {
|
||||||
return new TtmlNode(
|
return new TtmlNode(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue