Fix internal deprecation warnings (#4257)

This allows us to error out on deprecation warnings for thirdparty
libraries and standard library features.

Co-authored-by: Starlight220 <53231611+Starlight220@users.noreply.github.com>
This commit is contained in:
Tyler Veness
2022-05-24 13:56:48 -07:00
committed by GitHub
parent b193b318c1
commit d651a1fcec
32 changed files with 165 additions and 50 deletions

View File

@@ -254,6 +254,7 @@ public interface Command {
* @return the decorated command
* @deprecated use {@link #endlessly()} instead.
*/
@SuppressWarnings("removal") // PerpetualCommand
@Deprecated(forRemoval = true, since = "2023")
default PerpetualCommand perpetually() {
return new PerpetualCommand(this);

View File

@@ -56,6 +56,7 @@ public class PerpetualCommand extends CommandBase {
return m_command.runsWhenDisabled();
}
@SuppressWarnings("removal") // Command.perpetually()
@Override
public PerpetualCommand perpetually() {
return this;