mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Fix some nullness annotation warnings
PiperOrigin-RevId: 322780990
This commit is contained in:
parent
2c82cfe5b0
commit
c271eb85fd
@ -43,7 +43,6 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.Executor;
|
||||
import org.checkerframework.checker.nullness.compatqual.NullableType;
|
||||
|
||||
/**
|
||||
* Base class for multi segment stream downloaders.
|
||||
@ -456,14 +455,14 @@ public abstract class SegmentDownloader<M extends FilterableManifest<M>> impleme
|
||||
|
||||
public final Segment segment;
|
||||
public final CacheDataSource dataSource;
|
||||
@NullableType private final ProgressNotifier progressNotifier;
|
||||
@Nullable private final ProgressNotifier progressNotifier;
|
||||
public final byte[] temporaryBuffer;
|
||||
private final CacheWriter cacheWriter;
|
||||
|
||||
public SegmentDownloadRunnable(
|
||||
Segment segment,
|
||||
CacheDataSource dataSource,
|
||||
@NullableType ProgressNotifier progressNotifier,
|
||||
@Nullable ProgressNotifier progressNotifier,
|
||||
byte[] temporaryBuffer) {
|
||||
this.segment = segment;
|
||||
this.dataSource = dataSource;
|
||||
|
@ -36,7 +36,7 @@ public final class DefaultAllocator implements Allocator {
|
||||
private int targetBufferSize;
|
||||
private int allocatedCount;
|
||||
private int availableCount;
|
||||
@NullableType private Allocation[] availableAllocations;
|
||||
private @NullableType Allocation[] availableAllocations;
|
||||
|
||||
/**
|
||||
* Constructs an instance without creating any {@link Allocation}s up front.
|
||||
|
Loading…
x
Reference in New Issue
Block a user