mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Fix nullness checker warnings
PiperOrigin-RevId: 310997932
This commit is contained in:
parent
0d22d02df5
commit
6bf89bb49a
2 changed files with 3 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue