mirror of
https://github.com/androidx/media.git
synced 2025-05-06 23:20:42 +08:00
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 --sample ran all affected tests and none failed http://test/OCL:278915274:BASE:278884711:1573074344615:a6701677 PiperOrigin-RevId: 279080514
This commit is contained in:
parent
29d110b7eb
commit
355ed11a3c
@ -51,6 +51,12 @@ import java.nio.ByteBuffer;
|
||||
@Nullable private byte[] tempBuffer;
|
||||
private boolean endOfExtractorInput;
|
||||
|
||||
// the constructor does not initialize fields: tempBuffer
|
||||
// call to flacInit() not allowed on the given receiver.
|
||||
@SuppressWarnings({
|
||||
"nullness:initialization.fields.uninitialized",
|
||||
"nullness:method.invocation.invalid"
|
||||
})
|
||||
public FlacDecoderJni() throws FlacDecoderException {
|
||||
if (!FlacLibrary.isAvailable()) {
|
||||
throw new FlacDecoderException("Failed to load decoder native libraries.");
|
||||
|
@ -239,7 +239,11 @@ public class DefaultTimeBar extends View implements TimeBar {
|
||||
}
|
||||
|
||||
// Suppress warnings due to usage of View methods in the constructor.
|
||||
@SuppressWarnings("nullness:method.invocation.invalid")
|
||||
// the constructor does not initialize fields: adGroupTimesMs, playedAdGroups
|
||||
@SuppressWarnings({
|
||||
"nullness:method.invocation.invalid",
|
||||
"nullness:initialization.fields.uninitialized"
|
||||
})
|
||||
public DefaultTimeBar(
|
||||
Context context,
|
||||
@Nullable AttributeSet attrs,
|
||||
|
Loading…
x
Reference in New Issue
Block a user