From 34519de60ade09bd575e274595bb736017e956b9 Mon Sep 17 00:00:00 2001 From: superpenguin612 <74030080+superpenguin612@users.noreply.github.com> Date: Wed, 11 Jan 2023 14:46:33 -0500 Subject: [PATCH] [commands] Fix spacing in command composition exception (#4924) --- .../java/edu/wpi/first/wpilibj2/command/CommandScheduler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 15c86060c9..5bf429a6b2 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 @@ -602,7 +602,7 @@ public final class CommandScheduler implements NTSendable, AutoCloseable { public void requireNotComposed(Command command) { if (m_composedCommands.contains(command)) { throw new IllegalArgumentException( - "Commands that have been composed may not be added to another composition or scheduled" + "Commands that have been composed may not be added to another composition or scheduled " + "individually!"); } } @@ -616,7 +616,7 @@ public final class CommandScheduler implements NTSendable, AutoCloseable { public void requireNotComposed(Collection commands) { if (!Collections.disjoint(commands, getComposedCommands())) { throw new IllegalArgumentException( - "Commands that have been composed may not be added to another composition or scheduled" + "Commands that have been composed may not be added to another composition or scheduled " + "individually!"); } }