From 52d2c53888c790cc775b6dbf3578d2617cb052c7 Mon Sep 17 00:00:00 2001 From: Starlight220 <53231611+Starlight220@users.noreply.github.com> Date: Tue, 22 Nov 2022 20:16:27 +0200 Subject: [PATCH] [commands] Rename Java factory wait() to waitSeconds() (#4684) This is needed to avoid a conflict with Object.wait() when using static imports. C++ doesn't have this issue, and has units, so Wait() still makes sense there. --- .../src/main/java/edu/wpi/first/wpilibj2/command/Commands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/Commands.java b/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/Commands.java index 260ca686fb..f181f0cf23 100644 --- a/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/Commands.java +++ b/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/Commands.java @@ -100,7 +100,7 @@ public final class Commands { * @return the command * @see WaitCommand */ - public static CommandBase wait(double seconds) { + public static CommandBase waitSeconds(double seconds) { return new WaitCommand(seconds); }