Commit 288fb4a8 by christosts Committed by Oliver Woodman

Annotate deprecated methods in ForwardingPlayer

This change is needed to generate correct javadoc, otherwise
these methods appear as not deprecated.

#minor-release

PiperOrigin-RevId: 390339092
parent 2a6136f3
......@@ -47,8 +47,8 @@ public class ForwardingPlayer implements Player {
return player.getApplicationLooper();
}
@Deprecated
@Override
@SuppressWarnings("deprecation") // Implementing deprecated method.
public void addListener(EventListener listener) {
player.addListener(new ForwardingEventListener(this, listener));
}
......@@ -58,8 +58,8 @@ public class ForwardingPlayer implements Player {
player.addListener(new ForwardingListener(this, listener));
}
@Deprecated
@Override
@SuppressWarnings("deprecation") // Implementing deprecated method.
public void removeListener(EventListener listener) {
player.removeListener(new ForwardingEventListener(this, listener));
}
......@@ -350,8 +350,8 @@ public class ForwardingPlayer implements Player {
player.stop();
}
@Deprecated
@Override
@SuppressWarnings("deprecation") // Forwarding to deprecated method.
public void stop(boolean reset) {
player.stop(reset);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment