Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c271eb85
authored
Jul 23, 2020
by
andrewlewis
Committed by
Oliver Woodman
Jul 24, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix some nullness annotation warnings
PiperOrigin-RevId: 322780990
parent
2c82cfe5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
library/core/src/main/java/com/google/android/exoplayer2/offline/SegmentDownloader.java
library/core/src/main/java/com/google/android/exoplayer2/upstream/DefaultAllocator.java
library/core/src/main/java/com/google/android/exoplayer2/offline/SegmentDownloader.java
View file @
c271eb85
...
...
@@ -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
;
@Nullable
Type
private
final
ProgressNotifier
progressNotifier
;
@Nullable
private
final
ProgressNotifier
progressNotifier
;
public
final
byte
[]
temporaryBuffer
;
private
final
CacheWriter
cacheWriter
;
public
SegmentDownloadRunnable
(
Segment
segment
,
CacheDataSource
dataSource
,
@Nullable
Type
ProgressNotifier
progressNotifier
,
@Nullable
ProgressNotifier
progressNotifier
,
byte
[]
temporaryBuffer
)
{
this
.
segment
=
segment
;
this
.
dataSource
=
dataSource
;
...
...
library/core/src/main/java/com/google/android/exoplayer2/upstream/DefaultAllocator.java
View file @
c271eb85
...
...
@@ -36,7 +36,7 @@ public final class DefaultAllocator implements Allocator {
private
int
targetBufferSize
;
private
int
allocatedCount
;
private
int
availableCount
;
@NullableType
privat
e
Allocation
[]
availableAllocations
;
private
@NullableTyp
e
Allocation
[]
availableAllocations
;
/**
* Constructs an instance without creating any {@link Allocation}s up front.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment