mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[commands] CommandScheduler.requiring(): Note return can be null (NFC) (#2934)
This commit is contained in:
@@ -450,7 +450,7 @@ public final class CommandScheduler implements Sendable, AutoCloseable {
|
||||
* requiring the subsystem
|
||||
*
|
||||
* @param subsystem the subsystem to be inquired about
|
||||
* @return the command currently requiring the subsystem
|
||||
* @return the command currently requiring the subsystem, or null if no command is currently scheduled
|
||||
*/
|
||||
public Command requiring(Subsystem subsystem) {
|
||||
return m_requirements.get(subsystem);
|
||||
|
||||
Reference in New Issue
Block a user