Suppress spurious unchecked cast warning in LibraryResult

PiperOrigin-RevId: 438534391
This commit is contained in:
ibaker 2022-03-31 12:30:39 +01:00 committed by Ian Baker
parent aadbf3d59b
commit bd257d24ed

View File

@ -279,6 +279,8 @@ public final class LibraryResult<V> implements Bundleable {
private static final int FIELD_VALUE = 3;
private static final int FIELD_VALUE_TYPE = 4;
// Casting V to ImmutableList<MediaItem> is safe if valueType == VALUE_TYPE_ITEM_LIST.
@SuppressWarnings("unchecked")
@UnstableApi
@Override
public Bundle toBundle() {