[wpilibj] Change CommandBase.withName() to return CommandBase (#3209)

Doing this retains the Sendable portion of the type.
This commit is contained in:
Matt Soucy
2021-03-04 02:35:37 -05:00
committed by GitHub
parent 435bbb6a8c
commit 1a2680b9e5

View File

@@ -56,7 +56,7 @@ public abstract class CommandBase implements Sendable, Command {
* @param name name
* @return the decorated Command
*/
public Command withName(String name) {
public CommandBase withName(String name) {
this.setName(name);
return this;
}