(partial) Rollback of 880b879e8c

*** Original commit ***

Suppress warnings emitted by Checker Framework version 2.11.1

More information:
https://docs.google.com/document/d/16tpK6aXqN68PvTyvt4siM-m7f0NXi_8xEeitLDzr8xY/edit?usp=sharing

Tested:
    TAP train for global presubmit queue
    http://test/OCL:278152710:BASE:278144052:1572760370662:22459c12

***

PiperOrigin-RevId: 284738438
This commit is contained in:
ibaker 2019-12-10 11:50:20 +00:00 committed by Oliver Woodman
parent 90329a14c3
commit 4c4cabdfac
10 changed files with 1 additions and 25 deletions

View file

@ -688,8 +688,6 @@ public final class MediaSessionConnector {
* @param customActionProviders The custom action providers, or null to remove all existing custom
* action providers.
*/
// incompatible types in assignment.
@SuppressWarnings("nullness:assignment.type.incompatible")
public void setCustomActionProviders(@Nullable CustomActionProvider... customActionProviders) {
this.customActionProviders =
customActionProviders == null ? new CustomActionProvider[0] : customActionProviders;

View file

@ -24,7 +24,6 @@ import java.nio.ByteBuffer;
* An {@link AudioProcessor} that applies a mapping from input channels onto specified output
* channels. This can be used to reorder, duplicate or discard channels.
*/
@SuppressWarnings("nullness:initialization.fields.uninitialized")
/* package */ final class ChannelMappingAudioProcessor extends BaseAudioProcessor {
@Nullable private int[] pendingOutputChannels;

View file

@ -339,8 +339,6 @@ public class DefaultDrmSessionManager<T extends ExoMediaCrypto> implements DrmSe
new DefaultLoadErrorHandlingPolicy(initialDrmRequestRetryCount));
}
// the constructor does not initialize fields: offlineLicenseKeySetId
@SuppressWarnings("nullness:initialization.fields.uninitialized")
private DefaultDrmSessionManager(
UUID uuid,
ExoMediaDrm.Provider<T> exoMediaDrmProvider,

View file

@ -129,8 +129,6 @@ public final class Track {
: sampleDescriptionEncryptionBoxes[sampleDescriptionIndex];
}
// incompatible types in argument.
@SuppressWarnings("nullness:argument.type.incompatible")
public Track copyWithFormat(Format format) {
return new Track(
id,

View file

@ -943,8 +943,6 @@ public final class MediaCodecUtil {
@Nullable private android.media.MediaCodecInfo[] mediaCodecInfos;
// the constructor does not initialize fields: mediaCodecInfos
@SuppressWarnings("nullness:initialization.fields.uninitialized")
public MediaCodecListCompatV21(boolean includeSecure, boolean includeTunneling) {
codecKind =
includeSecure || includeTunneling
@ -958,8 +956,6 @@ public final class MediaCodecUtil {
return mediaCodecInfos.length;
}
// incompatible types in return.
@SuppressWarnings("nullness:return.type.incompatible")
@Override
public android.media.MediaCodecInfo getCodecInfoAt(int index) {
ensureMediaCodecInfosInitialized();

View file

@ -302,8 +302,6 @@ public final class DefaultDownloadIndex implements WritableDownloadIndex {
}
}
// incompatible types in argument.
@SuppressWarnings("nullness:argument.type.incompatible")
private Cursor getCursor(String selection, @Nullable String[] selectionArgs)
throws DatabaseIOException {
try {

View file

@ -383,8 +383,6 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
@Nullable private byte[] sampleData;
// the constructor does not initialize fields: sampleData
@SuppressWarnings("nullness:initialization.fields.uninitialized")
public SourceLoadable(DataSpec dataSpec, DataSource dataSource) {
this.dataSpec = dataSpec;
this.dataSource = new StatsDataSource(dataSource);

View file

@ -610,18 +610,13 @@ public class AdaptiveTrackSelection extends BaseTrackSelection {
@Nullable private long[][] allocationCheckpoints;
/* package */
// the constructor does not initialize fields: allocationCheckpoints
@SuppressWarnings("nullness:initialization.fields.uninitialized")
DefaultBandwidthProvider(
/* package */ DefaultBandwidthProvider(
BandwidthMeter bandwidthMeter, float bandwidthFraction, long reservedBandwidth) {
this.bandwidthMeter = bandwidthMeter;
this.bandwidthFraction = bandwidthFraction;
this.reservedBandwidth = reservedBandwidth;
}
// unboxing a possibly-null reference allocationCheckpoints[nextIndex][0]
@SuppressWarnings("nullness:unboxing.of.nullable")
@Override
public long getAllocatedBandwidth() {
long totalBandwidth = (long) (bandwidthMeter.getBitrateEstimate() * bandwidthFraction);

View file

@ -36,8 +36,6 @@ public final class DataSchemeDataSource extends BaseDataSource {
private int endPosition;
private int readPosition;
// the constructor does not initialize fields: data
@SuppressWarnings("nullness:initialization.fields.uninitialized")
public DataSchemeDataSource() {
super(/* isNetwork= */ false);
}

View file

@ -60,8 +60,6 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
// Methods called on any thread.
// the constructor does not initialize fields: lastProjectionData
@SuppressWarnings("nullness:initialization.fields.uninitialized")
public SceneRenderer() {
frameAvailable = new AtomicBoolean();
resetRotationAtNextFrame = new AtomicBoolean(true);