mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpilibj] Change CommandBase.withName() to return CommandBase (#3209)
Doing this retains the Sendable portion of the type.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user