Suppress warnings in preparation for Checker Framework 3.13.0 upgrade.

LSC: go/checker-lsc

Tested:
    TAP train for global presubmit queue
    http://test/OCL:379220771:BASE:379219228:1623675799153:ea986c7c
PiperOrigin-RevId: 379284240
This commit is contained in:
olly 2021-06-14 16:33:00 +01:00 committed by Oliver Woodman
parent 8cc1328d89
commit 0b97f08955

View File

@ -375,7 +375,7 @@ public class PlaybackException extends Exception implements Bundleable {
try {
Field creatorField = Class.forName(className).getField("CREATOR");
// It is ok to pass null to Field.get for static fields.
@SuppressWarnings("argument.type.incompatible")
@SuppressWarnings({"argument.type.incompatible", "nullness:argument"})
Creator<PlaybackException> creator =
(Creator<PlaybackException>) creatorField.get(/* obj= */ null);
if (creator != null) {