mirror of
https://github.com/androidx/media.git
synced 2025-05-17 12:39:52 +08:00
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:
parent
8cc1328d89
commit
0b97f08955
@ -375,7 +375,7 @@ public class PlaybackException extends Exception implements Bundleable {
|
|||||||
try {
|
try {
|
||||||
Field creatorField = Class.forName(className).getField("CREATOR");
|
Field creatorField = Class.forName(className).getField("CREATOR");
|
||||||
// It is ok to pass null to Field.get for static fields.
|
// 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> creator =
|
||||||
(Creator<PlaybackException>) creatorField.get(/* obj= */ null);
|
(Creator<PlaybackException>) creatorField.get(/* obj= */ null);
|
||||||
if (creator != null) {
|
if (creator != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user