[commands] Make Java fields private (#6148)

They were already private in C++ and probably shouldn't be exposed. This
also means we don't need to write redundant documentation for them.
This commit is contained in:
Tyler Veness
2024-01-04 00:57:52 -08:00
committed by GitHub
parent 4ac0720385
commit 6e58db398d
3 changed files with 7 additions and 7 deletions

View File

@@ -18,10 +18,10 @@ import java.util.function.Consumer;
* <p>This class is provided by the NewCommands VendorDep
*/
public class FunctionalCommand extends Command {
protected final Runnable m_onInit;
protected final Runnable m_onExecute;
protected final Consumer<Boolean> m_onEnd;
protected final BooleanSupplier m_isFinished;
private final Runnable m_onInit;
private final Runnable m_onExecute;
private final Consumer<Boolean> m_onEnd;
private final BooleanSupplier m_isFinished;
/**
* Creates a new FunctionalCommand.

View File

@@ -18,8 +18,8 @@ import edu.wpi.first.wpilibj.Notifier;
* <p>This class is provided by the NewCommands VendorDep
*/
public class NotifierCommand extends Command {
protected final Notifier m_notifier;
protected final double m_period;
private final Notifier m_notifier;
private final double m_period;
/**
* Creates a new NotifierCommand.

View File

@@ -20,7 +20,7 @@ import edu.wpi.first.util.sendable.SendableBuilder;
* <p>This class is provided by the NewCommands VendorDep
*/
public class RepeatCommand extends Command {
protected final Command m_command;
private final Command m_command;
private boolean m_ended;
/**