mirror of
https://github.com/androidx/media.git
synced 2025-05-09 16:40:55 +08:00
Suppress warnings in preparation for Checker Framework 3.2.0 upgrade.
In particular, replace @SuppressWarnings("initialization") with @SuppressWarnings("nullness"); see https://github.com/typetools/checker-framework/issues/3212. More information: go/checker-lsc Tested: TAP train for global presubmit queue http://test/OCL:304697666:BASE:304680497:1585968008044:f0c4fd6c PiperOrigin-RevId: 304751415
This commit is contained in:
parent
a6358dc7be
commit
8583cd92c7
@ -31,7 +31,7 @@ public abstract class SimpleSubtitleDecoder extends
|
|||||||
private final String name;
|
private final String name;
|
||||||
|
|
||||||
/** @param name The name of the decoder. */
|
/** @param name The name of the decoder. */
|
||||||
@SuppressWarnings("initialization:method.invocation.invalid")
|
@SuppressWarnings("nullness:method.invocation.invalid")
|
||||||
protected SimpleSubtitleDecoder(String name) {
|
protected SimpleSubtitleDecoder(String name) {
|
||||||
super(new SubtitleInputBuffer[2], new SubtitleOutputBuffer[2]);
|
super(new SubtitleInputBuffer[2], new SubtitleOutputBuffer[2]);
|
||||||
this.name = name;
|
this.name = name;
|
||||||
|
@ -47,7 +47,7 @@ public class TrackSelectionParameters implements Parcelable {
|
|||||||
*
|
*
|
||||||
* @param context Any context.
|
* @param context Any context.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({"deprecation", "initialization:method.invocation.invalid"})
|
@SuppressWarnings({"deprecation", "nullness:method.invocation.invalid"})
|
||||||
public Builder(Context context) {
|
public Builder(Context context) {
|
||||||
this();
|
this();
|
||||||
setPreferredTextLanguageAndRoleFlagsToCaptioningManagerSettings(context);
|
setPreferredTextLanguageAndRoleFlagsToCaptioningManagerSettings(context);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user