Suppress warnings emitted by Checker Framework version 2.6.0

PiperOrigin-RevId: 234917536
This commit is contained in:
olly 2019-02-21 03:32:57 +00:00 committed by Andrew Lewis
parent e502672b89
commit 1450b3713f
8 changed files with 24 additions and 4 deletions

View File

@ -68,6 +68,8 @@ public abstract class GvrPlayerActivity extends GvrActivity {
mainHandler = new Handler(Looper.getMainLooper());
}
// TODO(b/124903498): Incompatible parameter type for savedInstanceState.
@SuppressWarnings("nullness:override.param.invalid")
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

View File

@ -136,7 +136,10 @@ public final class DrmInitData implements Comparator<SchemeData>, Parcelable {
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();
schemeDatas = in.createTypedArray(SchemeData.CREATOR);
schemeDataCount = schemeDatas.length;

View File

@ -45,7 +45,10 @@ public final class ChapterTocFrame extends Id3Frame {
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);
this.elementId = castNonNull(in.readString());
this.isRoot = in.readByte() != 0;

View File

@ -44,7 +44,10 @@ public final class MlltFrame extends Id3Frame {
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);
this.mpegFramesBetweenReference = in.readInt();
this.bytesBetweenReference = in.readInt();

View File

@ -363,6 +363,8 @@ public final class DownloadHelper {
* Looper}, in which case it will be called on the application's main thread.
* @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) {
Assertions.checkState(this.callback == null);
this.callback = callback;

View File

@ -888,7 +888,10 @@ public class DefaultTrackSelector extends MappingTrackSelector {
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);
// Video
this.maxVideoWidth = in.readInt();

View File

@ -162,6 +162,8 @@ public final class Util {
* @param intent The intent to pass to 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) {
if (Util.SDK_INT >= 26) {
return context.startForegroundService(intent);

View File

@ -1265,6 +1265,8 @@ public class PlayerNotificationManager {
private class NotificationBroadcastReceiver extends BroadcastReceiver {
// TODO(b/124903498): incompatible types in argument.
@SuppressWarnings("nullness:argument.type.incompatible")
@Override
public void onReceive(Context context, Intent intent) {
Player player = PlayerNotificationManager.this.player;