Skip to content

Commit

Permalink
Add Set.of to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Sep 5, 2023
1 parent 3d36d91 commit 1df8964
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Command> supplier, Set<Subsystem> requirements) {
m_supplier = requireNonNullParam(supplier, "supplier", "DeferredCommand");
Expand Down

0 comments on commit 1df8964

Please sign in to comment.