Skip to content

Commit

Permalink
Annotate deprecated methods in ForwardingPlayer
Browse files Browse the repository at this point in the history
This change is needed to generate correct javadoc, otherwise
these methods appear as not deprecated.

#minor-release

PiperOrigin-RevId: 390339092
  • Loading branch information
christosts committed Sep 16, 2021
1 parent 8f3dbdf commit 64002f6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public Looper getApplicationLooper() {
return player.getApplicationLooper();
}

@Deprecated
@Override
@SuppressWarnings("deprecation") // Implementing deprecated method.
public void addListener(EventListener listener) {
player.addListener(new ForwardingEventListener(this, listener));
}
Expand All @@ -59,8 +59,8 @@ public void addListener(Listener listener) {
player.addListener(new ForwardingListener(this, listener));
}

@Deprecated
@Override
@SuppressWarnings("deprecation") // Implementing deprecated method.
public void removeListener(EventListener listener) {
player.removeListener(new ForwardingEventListener(this, listener));
}
Expand Down Expand Up @@ -346,8 +346,8 @@ public void stop() {
player.stop();
}

@Deprecated
@Override
@SuppressWarnings("deprecation") // Forwarding to deprecated method.
public void stop(boolean reset) {
player.stop(reset);
}
Expand Down

0 comments on commit 64002f6

Please sign in to comment.