From 1df896400b9fdea43512b0478ba06642857fee81 Mon Sep 17 00:00:00 2001 From: Ryan Blue Date: Mon, 4 Sep 2023 21:20:40 -0400 Subject: [PATCH] Add Set.of to documentation --- .../java/edu/wpi/first/wpilibj2/command/DeferredCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/DeferredCommand.java b/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/DeferredCommand.java index 04f07ead979..1d32012ab04 100644 --- a/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/DeferredCommand.java +++ b/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/DeferredCommand.java @@ -34,7 +34,8 @@ public class DeferredCommand extends Command { * * @param supplier The command supplier * @param requirements The command requirements. This is a {@link Set} to prevent accidental - * omission of command requirements. + * omission of command requirements. Use {@link Set#of()} to easily construct a requirement + * set. */ public DeferredCommand(Supplier supplier, Set requirements) { m_supplier = requireNonNullParam(supplier, "supplier", "DeferredCommand");