[build] Add checkstyle check for deprecation (#7738)

Ensures java deprecated notation is paired with javadoc and vice versa.
Adds javadoc deprecation for MecanumControllerCommand, ArmFeedForward,
ElevatorFeedforward, and MecanumDriveMotorVoltages
Fixes #7736
Supersedes #7737

Co-authored-by: Joseph Eng <91924258+KangarooKoala@users.noreply.github.com>
This commit is contained in:
sciencewhiz
2025-06-30 00:09:02 -07:00
committed by GitHub
parent ccc9740d56
commit f2dd81c839
5 changed files with 14 additions and 1 deletions

View File

@@ -172,6 +172,8 @@ public class MecanumControllerCommand extends Command {
* @param outputDriveVoltages A MecanumDriveMotorVoltages object containing the output motor
* voltages.
* @param requirements The subsystems to require.
* @deprecated Use {@link MecanumVoltagesConsumer} instead of {@code
* Consumer<MecanumDriveMotorVoltages}.
*/
@Deprecated(since = "2025", forRemoval = true)
public MecanumControllerCommand(
@@ -308,6 +310,8 @@ public class MecanumControllerCommand extends Command {
* @param outputDriveVoltages A MecanumDriveMotorVoltages object containing the output motor
* voltages.
* @param requirements The subsystems to require.
* @deprecated Use {@link MecanumVoltagesConsumer} instead of {@code
* Consumer<MecanumDriveMotorVoltages>}.
*/
@Deprecated(since = "2025", forRemoval = true)
public MecanumControllerCommand(