From 0922f8af592dc87d96726c632195192f35e1687c Mon Sep 17 00:00:00 2001 From: Blake Bourque Date: Thu, 4 Mar 2021 02:56:57 -0500 Subject: [PATCH] [commands] CommandScheduler.requiring(): Note return can be null (NFC) (#2934) --- .../java/edu/wpi/first/wpilibj2/command/CommandScheduler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/CommandScheduler.java b/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/CommandScheduler.java index 3baf6fda21..9ab640b0de 100644 --- a/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/CommandScheduler.java +++ b/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/CommandScheduler.java @@ -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);