Suppress incorrect linter error in DebugRenderersFactory method

Method should use @RequiresApi annotation instead of @SdkSuppress

PiperOrigin-RevId: 638639225
This commit is contained in:
michaelkatz 2024-05-30 07:02:36 -07:00 committed by Copybara-Service
parent 1f1897709f
commit 96fae82436

View File

@ -17,6 +17,7 @@ package androidx.media3.test.exoplayer.playback.gts;
import static java.lang.Math.max;
import android.annotation.SuppressLint;
import android.content.Context;
import android.media.MediaCrypto;
import android.media.MediaFormat;
@ -243,6 +244,7 @@ import java.util.ArrayList;
super.renderOutputBuffer(codec, index, presentationTimeUs);
}
@SuppressLint("UseSdkSuppress") // Not a test class or method.
@RequiresApi(21)
@Override
protected void renderOutputBufferV21(