mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[commands] Fix spacing in command composition exception (#4924)
This commit is contained in:
@@ -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<Command> 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!");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user