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
21f5914e
authored
Jul 19, 2020
by
olly
Committed by
Oliver Woodman
Jul 24, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Re-add rawtypes suppression
PiperOrigin-RevId: 322008577
parent
30743653
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
library/dash/src/main/java/com/google/android/exoplayer2/source/dash/DashMediaPeriod.java
library/smoothstreaming/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/SsMediaPeriod.java
testutils/src/main/java/com/google/android/exoplayer2/testutil/FakeAdaptiveMediaPeriod.java
library/dash/src/main/java/com/google/android/exoplayer2/source/dash/DashMediaPeriod.java
View file @
21f5914e
...
...
@@ -895,7 +895,7 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
}
// We won't assign the array to a variable that erases the generic type, and then write into it.
@SuppressWarnings
({
"unchecked"
})
@SuppressWarnings
({
"unchecked"
,
"rawtypes"
})
private
static
ChunkSampleStream
<
DashChunkSource
>[]
newSampleStreamArray
(
int
length
)
{
return
new
ChunkSampleStream
[
length
];
}
...
...
library/smoothstreaming/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/SsMediaPeriod.java
View file @
21f5914e
...
...
@@ -283,7 +283,7 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
}
// We won't assign the array to a variable that erases the generic type, and then write into it.
@SuppressWarnings
({
"unchecked"
})
@SuppressWarnings
({
"unchecked"
,
"rawtypes"
})
private
static
ChunkSampleStream
<
SsChunkSource
>[]
newSampleStreamArray
(
int
length
)
{
return
new
ChunkSampleStream
[
length
];
}
...
...
testutils/src/main/java/com/google/android/exoplayer2/testutil/FakeAdaptiveMediaPeriod.java
View file @
21f5914e
...
...
@@ -184,7 +184,7 @@ public class FakeAdaptiveMediaPeriod extends FakeMediaPeriod
}
// We won't assign the array to a variable that erases the generic type, and then write into it.
@SuppressWarnings
({
"unchecked"
})
@SuppressWarnings
({
"unchecked"
,
"rawtypes"
})
private
static
ChunkSampleStream
<
FakeChunkSource
>[]
newSampleStreamArray
(
int
length
)
{
return
new
ChunkSampleStream
[
length
];
}
...
...
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