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.List;
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
import java.util.concurrent.Executor;
|
import java.util.concurrent.Executor;
|
||||||
import org.checkerframework.checker.nullness.compatqual.NullableType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for multi segment stream downloaders.
|
* 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 Segment segment;
|
||||||
public final CacheDataSource dataSource;
|
public final CacheDataSource dataSource;
|
||||||
@NullableType private final ProgressNotifier progressNotifier;
|
@Nullable private final ProgressNotifier progressNotifier;
|
||||||
public final byte[] temporaryBuffer;
|
public final byte[] temporaryBuffer;
|
||||||
private final CacheWriter cacheWriter;
|
private final CacheWriter cacheWriter;
|
||||||
|
|
||||||
public SegmentDownloadRunnable(
|
public SegmentDownloadRunnable(
|
||||||
Segment segment,
|
Segment segment,
|
||||||
CacheDataSource dataSource,
|
CacheDataSource dataSource,
|
||||||
@NullableType ProgressNotifier progressNotifier,
|
@Nullable ProgressNotifier progressNotifier,
|
||||||
byte[] temporaryBuffer) {
|
byte[] temporaryBuffer) {
|
||||||
this.segment = segment;
|
this.segment = segment;
|
||||||
this.dataSource = dataSource;
|
this.dataSource = dataSource;
|
||||||
|
@ -36,7 +36,7 @@ public final class DefaultAllocator implements Allocator {
|
|||||||
private int targetBufferSize;
|
private int targetBufferSize;
|
||||||
private int allocatedCount;
|
private int allocatedCount;
|
||||||
private int availableCount;
|
private int availableCount;
|
||||||
@NullableType private Allocation[] availableAllocations;
|
private @NullableType Allocation[] availableAllocations;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs an instance without creating any {@link Allocation}s up front.
|
* Constructs an instance without creating any {@link Allocation}s up front.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user