Fixes for some minor misc issues
- Unnecessary deprecation suppressions - Dead code - Broken Javadoc PiperOrigin-RevId: 409357884
This commit is contained in:
parent
233935d6bd
commit
34b2572d37
@ -392,7 +392,6 @@ public class CastPlayerTest {
|
||||
assertThat(mediaQueueItems[1].getMedia().getContentId()).isEqualTo(uri2);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation") // Verifies deprecated callback being called correctly.
|
||||
@Test
|
||||
public void setMediaItems_replaceExistingPlaylist_notifiesMediaItemTransition() {
|
||||
List<MediaItem> firstPlaylist = new ArrayList<>();
|
||||
|
@ -134,8 +134,6 @@ public final class LeanbackPlayerAdapter extends PlayerAdapter implements Runnab
|
||||
return player.getPlaybackState() == Player.STATE_IDLE ? -1 : player.getCurrentPosition();
|
||||
}
|
||||
|
||||
// Calls deprecated method to provide backwards compatibility.
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public void play() {
|
||||
if (player.getPlaybackState() == Player.STATE_IDLE) {
|
||||
|
@ -362,7 +362,6 @@ public final class Cue implements Bundleable {
|
||||
* @param textSize See {@link #textSize}.
|
||||
* @deprecated Use {@link Builder}.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
@Deprecated
|
||||
public Cue(
|
||||
CharSequence text,
|
||||
|
@ -262,7 +262,6 @@ public class DefaultLoadControl implements LoadControl {
|
||||
private boolean isLoading;
|
||||
|
||||
/** Constructs a new instance, using the {@code DEFAULT_*} constants defined in this class. */
|
||||
@SuppressWarnings("deprecation")
|
||||
public DefaultLoadControl() {
|
||||
this(
|
||||
new DefaultAllocator(true, C.DEFAULT_BUFFER_SEGMENT_SIZE),
|
||||
|
@ -396,7 +396,6 @@ public class SimpleExoPlayer extends BasePlayer
|
||||
|
||||
/** @deprecated Use the {@link ExoPlayer.Builder}. */
|
||||
@Deprecated
|
||||
@SuppressWarnings("deprecation")
|
||||
protected SimpleExoPlayer(
|
||||
Context context,
|
||||
RenderersFactory renderersFactory,
|
||||
@ -428,7 +427,6 @@ public class SimpleExoPlayer extends BasePlayer
|
||||
}
|
||||
|
||||
/** @param builder The {@link ExoPlayer.Builder} to obtain all construction parameters. */
|
||||
@SuppressWarnings("deprecation")
|
||||
/* package */ SimpleExoPlayer(ExoPlayer.Builder builder) {
|
||||
constructorFinished = new ConditionVariable();
|
||||
try {
|
||||
|
@ -1222,7 +1222,6 @@ public class PlayerControlView extends FrameLayout {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private void dispatchPlay(Player player) {
|
||||
@State int state = player.getPlaybackState();
|
||||
if (state == Player.STATE_IDLE) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user