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
1ab5923f
authored
Apr 21, 2020
by
olly
Committed by
Ian Baker
Apr 27, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix nullness checker warnings
PiperOrigin-RevId: 307570994
parent
118f0b39
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
library/core/src/main/java/com/google/android/exoplayer2/source/MergingMediaPeriod.java
library/core/src/main/java/com/google/android/exoplayer2/text/subrip/SubripDecoder.java
library/core/src/main/java/com/google/android/exoplayer2/source/MergingMediaPeriod.java
View file @
1ab5923f
...
@@ -158,8 +158,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
...
@@ -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
;
...
...
library/core/src/main/java/com/google/android/exoplayer2/text/subrip/SubripDecoder.java
View file @
1ab5923f
...
@@ -135,8 +135,7 @@ public final class SubripDecoder extends SimpleSubtitleDecoder {
...
@@ -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
);
}
}
...
...
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