mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[commands] WrapperCommand: inherit from CommandBase (#4561)
This makes WrapperCommand Sendable. Only Java had this issue.
This commit is contained in:
@@ -16,7 +16,7 @@ import java.util.Set;
|
||||
* <p>Wrapped commands may only be used through the wrapper, trying to directly schedule them or add
|
||||
* them to a group will throw an exception.
|
||||
*/
|
||||
public abstract class WrapperCommand implements Command {
|
||||
public abstract class WrapperCommand extends CommandBase {
|
||||
protected final Command m_command;
|
||||
|
||||
/**
|
||||
@@ -99,14 +99,4 @@ public abstract class WrapperCommand implements Command {
|
||||
public InterruptionBehavior getInterruptionBehavior() {
|
||||
return m_command.getInterruptionBehavior();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the name of this Command.
|
||||
*
|
||||
* @return Name
|
||||
*/
|
||||
@Override
|
||||
public String getName() {
|
||||
return m_command.getName();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user