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
6bf89bb4
authored
May 11, 2020
by
olly
Committed by
Oliver Woodman
May 14, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix nullness checker warnings
PiperOrigin-RevId: 310997932
parent
0d22d02d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
library/common/src/main/java/com/google/android/exoplayer2/metadata/Metadata.java
library/common/src/main/java/com/google/android/exoplayer2/metadata/id3/Id3Decoder.java
library/common/src/main/java/com/google/android/exoplayer2/metadata/Metadata.java
View file @
6bf89bb4
...
...
@@ -63,8 +63,7 @@ public final class Metadata implements Parcelable {
* @param entries The metadata entries.
*/
public
Metadata
(
List
<?
extends
Entry
>
entries
)
{
this
.
entries
=
new
Entry
[
entries
.
size
()];
entries
.
toArray
(
this
.
entries
);
this
.
entries
=
entries
.
toArray
(
new
Entry
[
0
]);
}
/* package */
Metadata
(
Parcel
in
)
{
...
...
library/common/src/main/java/com/google/android/exoplayer2/metadata/id3/Id3Decoder.java
View file @
6bf89bb4
...
...
@@ -626,8 +626,7 @@ public final class Id3Decoder implements MetadataDecoder {
}
}
Id3Frame
[]
subFrameArray
=
new
Id3Frame
[
subFrames
.
size
()];
subFrames
.
toArray
(
subFrameArray
);
Id3Frame
[]
subFrameArray
=
subFrames
.
toArray
(
new
Id3Frame
[
0
]);
return
new
ChapterFrame
(
chapterId
,
startTime
,
endTime
,
startOffset
,
endOffset
,
subFrameArray
);
}
...
...
@@ -668,8 +667,7 @@ public final class Id3Decoder implements MetadataDecoder {
}
}
Id3Frame
[]
subFrameArray
=
new
Id3Frame
[
subFrames
.
size
()];
subFrames
.
toArray
(
subFrameArray
);
Id3Frame
[]
subFrameArray
=
subFrames
.
toArray
(
new
Id3Frame
[
0
]);
return
new
ChapterTocFrame
(
elementId
,
isRoot
,
isOrdered
,
children
,
subFrameArray
);
}
...
...
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