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
1450b371
authored
Feb 21, 2019
by
olly
Committed by
Andrew Lewis
Feb 21, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Suppress warnings emitted by Checker Framework version 2.6.0
PiperOrigin-RevId: 234917536
parent
e502672b
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
4 deletions
extensions/gvr/src/main/java/com/google/android/exoplayer2/ext/gvr/GvrPlayerActivity.java
library/core/src/main/java/com/google/android/exoplayer2/drm/DrmInitData.java
library/core/src/main/java/com/google/android/exoplayer2/metadata/id3/ChapterTocFrame.java
library/core/src/main/java/com/google/android/exoplayer2/metadata/id3/MlltFrame.java
library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadHelper.java
library/core/src/main/java/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.java
library/core/src/main/java/com/google/android/exoplayer2/util/Util.java
library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerNotificationManager.java
extensions/gvr/src/main/java/com/google/android/exoplayer2/ext/gvr/GvrPlayerActivity.java
View file @
1450b371
...
@@ -68,6 +68,8 @@ public abstract class GvrPlayerActivity extends GvrActivity {
...
@@ -68,6 +68,8 @@ public abstract class GvrPlayerActivity extends GvrActivity {
mainHandler
=
new
Handler
(
Looper
.
getMainLooper
());
mainHandler
=
new
Handler
(
Looper
.
getMainLooper
());
}
}
// TODO(b/124903498): Incompatible parameter type for savedInstanceState.
@SuppressWarnings
(
"nullness:override.param.invalid"
)
@Override
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
super
.
onCreate
(
savedInstanceState
);
...
...
library/core/src/main/java/com/google/android/exoplayer2/drm/DrmInitData.java
View file @
1450b371
...
@@ -136,7 +136,10 @@ public final class DrmInitData implements Comparator<SchemeData>, Parcelable {
...
@@ -136,7 +136,10 @@ public final class DrmInitData implements Comparator<SchemeData>, Parcelable {
Arrays
.
sort
(
this
.
schemeDatas
,
this
);
Arrays
.
sort
(
this
.
schemeDatas
,
this
);
}
}
/* package */
DrmInitData
(
Parcel
in
)
{
/* package */
// TODO(b/124903498): incompatible types in assignment.
@SuppressWarnings
(
"nullness:assignment.type.incompatible"
)
DrmInitData
(
Parcel
in
)
{
schemeType
=
in
.
readString
();
schemeType
=
in
.
readString
();
schemeDatas
=
in
.
createTypedArray
(
SchemeData
.
CREATOR
);
schemeDatas
=
in
.
createTypedArray
(
SchemeData
.
CREATOR
);
schemeDataCount
=
schemeDatas
.
length
;
schemeDataCount
=
schemeDatas
.
length
;
...
...
library/core/src/main/java/com/google/android/exoplayer2/metadata/id3/ChapterTocFrame.java
View file @
1450b371
...
@@ -45,7 +45,10 @@ public final class ChapterTocFrame extends Id3Frame {
...
@@ -45,7 +45,10 @@ public final class ChapterTocFrame extends Id3Frame {
this
.
subFrames
=
subFrames
;
this
.
subFrames
=
subFrames
;
}
}
/* package */
ChapterTocFrame
(
Parcel
in
)
{
/* package */
// TODO(b/124903498): incompatible types in assignment.
@SuppressWarnings
(
"nullness:assignment.type.incompatible"
)
ChapterTocFrame
(
Parcel
in
)
{
super
(
ID
);
super
(
ID
);
this
.
elementId
=
castNonNull
(
in
.
readString
());
this
.
elementId
=
castNonNull
(
in
.
readString
());
this
.
isRoot
=
in
.
readByte
()
!=
0
;
this
.
isRoot
=
in
.
readByte
()
!=
0
;
...
...
library/core/src/main/java/com/google/android/exoplayer2/metadata/id3/MlltFrame.java
View file @
1450b371
...
@@ -44,7 +44,10 @@ public final class MlltFrame extends Id3Frame {
...
@@ -44,7 +44,10 @@ public final class MlltFrame extends Id3Frame {
this
.
millisecondsDeviations
=
millisecondsDeviations
;
this
.
millisecondsDeviations
=
millisecondsDeviations
;
}
}
/* package */
MlltFrame
(
Parcel
in
)
{
/* package */
// TODO(b/124903498): incompatible types in assignment.
@SuppressWarnings
(
"nullness:assignment.type.incompatible"
)
MlltFrame
(
Parcel
in
)
{
super
(
ID
);
super
(
ID
);
this
.
mpegFramesBetweenReference
=
in
.
readInt
();
this
.
mpegFramesBetweenReference
=
in
.
readInt
();
this
.
bytesBetweenReference
=
in
.
readInt
();
this
.
bytesBetweenReference
=
in
.
readInt
();
...
...
library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadHelper.java
View file @
1450b371
...
@@ -363,6 +363,8 @@ public final class DownloadHelper {
...
@@ -363,6 +363,8 @@ public final class DownloadHelper {
* Looper}, in which case it will be called on the application's main thread.
* Looper}, in which case it will be called on the application's main thread.
* @throws IllegalStateException If the download helper has already been prepared.
* @throws IllegalStateException If the download helper has already been prepared.
*/
*/
// TODO(b/124903498): incompatible types in argument.
@SuppressWarnings
(
"nullness:argument.type.incompatible"
)
public
void
prepare
(
Callback
callback
)
{
public
void
prepare
(
Callback
callback
)
{
Assertions
.
checkState
(
this
.
callback
==
null
);
Assertions
.
checkState
(
this
.
callback
==
null
);
this
.
callback
=
callback
;
this
.
callback
=
callback
;
...
...
library/core/src/main/java/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.java
View file @
1450b371
...
@@ -888,7 +888,10 @@ public class DefaultTrackSelector extends MappingTrackSelector {
...
@@ -888,7 +888,10 @@ public class DefaultTrackSelector extends MappingTrackSelector {
this
.
rendererDisabledFlags
=
rendererDisabledFlags
;
this
.
rendererDisabledFlags
=
rendererDisabledFlags
;
}
}
/* package */
Parameters
(
Parcel
in
)
{
/* package */
// TODO(b/124903498): incompatible types in assignment.
@SuppressWarnings
(
"nullness:assignment.type.incompatible"
)
Parameters
(
Parcel
in
)
{
super
(
in
);
super
(
in
);
// Video
// Video
this
.
maxVideoWidth
=
in
.
readInt
();
this
.
maxVideoWidth
=
in
.
readInt
();
...
...
library/core/src/main/java/com/google/android/exoplayer2/util/Util.java
View file @
1450b371
...
@@ -162,6 +162,8 @@ public final class Util {
...
@@ -162,6 +162,8 @@ public final class Util {
* @param intent The intent to pass to the called method.
* @param intent The intent to pass to the called method.
* @return The result of the called method.
* @return The result of the called method.
*/
*/
// TODO(b/124903498): incompatible types in return.
@SuppressWarnings
(
"nullness:return.type.incompatible"
)
public
static
ComponentName
startForegroundService
(
Context
context
,
Intent
intent
)
{
public
static
ComponentName
startForegroundService
(
Context
context
,
Intent
intent
)
{
if
(
Util
.
SDK_INT
>=
26
)
{
if
(
Util
.
SDK_INT
>=
26
)
{
return
context
.
startForegroundService
(
intent
);
return
context
.
startForegroundService
(
intent
);
...
...
library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerNotificationManager.java
View file @
1450b371
...
@@ -1265,6 +1265,8 @@ public class PlayerNotificationManager {
...
@@ -1265,6 +1265,8 @@ public class PlayerNotificationManager {
private
class
NotificationBroadcastReceiver
extends
BroadcastReceiver
{
private
class
NotificationBroadcastReceiver
extends
BroadcastReceiver
{
// TODO(b/124903498): incompatible types in argument.
@SuppressWarnings
(
"nullness:argument.type.incompatible"
)
@Override
@Override
public
void
onReceive
(
Context
context
,
Intent
intent
)
{
public
void
onReceive
(
Context
context
,
Intent
intent
)
{
Player
player
=
PlayerNotificationManager
.
this
.
player
;
Player
player
=
PlayerNotificationManager
.
this
.
player
;
...
...
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