Suppress warnings in preparation for Checker Framework 3.3.0 upgrade.

PiperOrigin-RevId: 305810757
This commit is contained in:
olly 2020-04-10 03:47:54 +01:00 committed by Ian Baker
parent 2dafb8fd69
commit d1e0572448
2 changed files with 4 additions and 1 deletions

View File

@ -166,7 +166,8 @@ public final class CronetEngineWrapper {
private final boolean preferGMSCoreCronet; private final boolean preferGMSCoreCronet;
// Multi-catch can only be used for API 19+ in this case. // Multi-catch can only be used for API 19+ in this case.
@SuppressWarnings("UseMultiCatch") // incompatible types in argument.
@SuppressWarnings({"UseMultiCatch", "nullness:argument.type.incompatible"})
public CronetProviderComparator(boolean preferGMSCoreCronet) { public CronetProviderComparator(boolean preferGMSCoreCronet) {
// GMSCore CronetProvider classes are only available in some configurations. // GMSCore CronetProvider classes are only available in some configurations.
// Thus, we use reflection to copy static name. // Thus, we use reflection to copy static name.

View File

@ -96,6 +96,8 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
return Assertions.checkNotNull(trackGroups); return Assertions.checkNotNull(trackGroups);
} }
// unboxing a possibly-null reference streamPeriodIndices.get(streams[i])
@SuppressWarnings("nullness:unboxing.of.nullable")
@Override @Override
public long selectTracks( public long selectTracks(
@NullableType TrackSelection[] selections, @NullableType TrackSelection[] selections,