[commands] WrapperCommand: inherit from CommandBase (#4561)

This makes WrapperCommand Sendable.
Only Java had this issue.
This commit is contained in:
Starlight220
2022-11-03 15:27:23 +02:00
committed by GitHub
parent 0da169dd84
commit 12c2851856

View File

@@ -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();
}
}