SCRIPT: Spotless Apply

This commit is contained in:
PJ Reiniger
2025-11-07 19:57:21 -05:00
committed by Peter Johnson
parent c89910b7c6
commit c48b722dac
650 changed files with 1529 additions and 1545 deletions

View File

@@ -7,16 +7,16 @@ package org.wpilib.command2;
import static org.wpilib.units.Units.Seconds;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import org.wpilib.units.measure.Time;
import org.wpilib.util.function.BooleanConsumer;
import org.wpilib.util.sendable.Sendable;
import org.wpilib.util.sendable.SendableBuilder;
import org.wpilib.util.sendable.SendableRegistry;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import java.util.function.BooleanSupplier;
import org.wpilib.annotation.NoDiscard;
import org.wpilib.units.measure.Time;
import org.wpilib.util.function.BooleanConsumer;
import org.wpilib.util.sendable.Sendable;
import org.wpilib.util.sendable.SendableBuilder;
import org.wpilib.util.sendable.SendableRegistry;
/**
* A state machine representing a complete action to be performed by the robot. Commands are run by

View File

@@ -6,17 +6,6 @@ package org.wpilib.command2;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import org.wpilib.hardware.hal.HAL;
import org.wpilib.util.sendable.Sendable;
import org.wpilib.util.sendable.SendableBuilder;
import org.wpilib.util.sendable.SendableRegistry;
import org.wpilib.driverstation.DriverStation;
import org.wpilib.opmode.RobotBase;
import org.wpilib.opmode.RobotState;
import org.wpilib.opmode.TimedRobot;
import org.wpilib.system.Watchdog;
import org.wpilib.event.EventLoop;
import org.wpilib.command2.Command.InterruptionBehavior;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.ArrayList;
@@ -33,6 +22,17 @@ import java.util.Set;
import java.util.WeakHashMap;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import org.wpilib.command2.Command.InterruptionBehavior;
import org.wpilib.driverstation.DriverStation;
import org.wpilib.event.EventLoop;
import org.wpilib.hardware.hal.HAL;
import org.wpilib.opmode.RobotBase;
import org.wpilib.opmode.RobotState;
import org.wpilib.opmode.TimedRobot;
import org.wpilib.system.Watchdog;
import org.wpilib.util.sendable.Sendable;
import org.wpilib.util.sendable.SendableBuilder;
import org.wpilib.util.sendable.SendableRegistry;
/**
* The scheduler responsible for running {@link Command}s. A Command-based robot should call {@link

View File

@@ -6,11 +6,11 @@ package org.wpilib.command2;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import org.wpilib.units.measure.Time;
import java.util.Map;
import java.util.Set;
import java.util.function.BooleanSupplier;
import java.util.function.Supplier;
import org.wpilib.units.measure.Time;
/**
* Namespace for command factory methods.

View File

@@ -6,8 +6,8 @@ package org.wpilib.command2;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import org.wpilib.util.sendable.SendableBuilder;
import java.util.function.BooleanSupplier;
import org.wpilib.util.sendable.SendableBuilder;
/**
* A command composition that runs one of two commands, depending on the value of the given

View File

@@ -6,9 +6,9 @@ package org.wpilib.command2;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import org.wpilib.util.sendable.SendableBuilder;
import java.util.Set;
import java.util.function.Supplier;
import org.wpilib.util.sendable.SendableBuilder;
/**
* Defers Command construction to runtime. Runs the command returned by a supplier when this command

View File

@@ -4,10 +4,10 @@
package org.wpilib.command2;
import org.wpilib.util.sendable.SendableBuilder;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
import org.wpilib.util.sendable.SendableBuilder;
/**
* A command composition that runs a set of commands in parallel, ending only when a specific

View File

@@ -6,8 +6,8 @@ package org.wpilib.command2;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import org.wpilib.util.sendable.SendableBuilder;
import java.util.function.Supplier;
import org.wpilib.util.sendable.SendableBuilder;
/**
* Schedules a given command when this command is initialized and ends when it ends, but does not

View File

@@ -6,9 +6,9 @@ package org.wpilib.command2;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import org.wpilib.util.sendable.SendableBuilder;
import java.util.Map;
import java.util.function.Supplier;
import org.wpilib.util.sendable.SendableBuilder;
/**
* A command composition that runs one of a selection of commands using a selector and a key to

View File

@@ -4,9 +4,9 @@
package org.wpilib.command2;
import org.wpilib.util.sendable.SendableBuilder;
import java.util.ArrayList;
import java.util.List;
import org.wpilib.util.sendable.SendableBuilder;
/**
* A command composition that runs a list of commands in sequence.

View File

@@ -6,10 +6,10 @@ package org.wpilib.command2;
import static org.wpilib.units.Units.Seconds;
import org.wpilib.system.Timer;
import org.wpilib.units.measure.Time;
import org.wpilib.util.sendable.SendableBuilder;
import org.wpilib.util.sendable.SendableRegistry;
import org.wpilib.system.Timer;
/**
* A command that does nothing but takes a specified amount of time to finish.

View File

@@ -6,8 +6,8 @@ package org.wpilib.command2;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import org.wpilib.system.Timer;
import java.util.function.BooleanSupplier;
import org.wpilib.system.Timer;
/**
* A command that does nothing but ends after a specified match time or condition. Useful for

View File

@@ -4,9 +4,9 @@
package org.wpilib.command2.button;
import org.wpilib.command2.CommandScheduler;
import org.wpilib.driverstation.Gamepad;
import org.wpilib.event.EventLoop;
import org.wpilib.command2.CommandScheduler;
/**
* A version of {@link Gamepad} with {@link Trigger} factories for command-based.

View File

@@ -4,13 +4,13 @@
package org.wpilib.command2.button;
import org.wpilib.math.util.Pair;
import java.util.HashMap;
import java.util.Map;
import org.wpilib.command2.CommandScheduler;
import org.wpilib.driverstation.DriverStation.POVDirection;
import org.wpilib.driverstation.GenericHID;
import org.wpilib.event.EventLoop;
import org.wpilib.command2.CommandScheduler;
import java.util.HashMap;
import java.util.Map;
import org.wpilib.math.util.Pair;
/**
* A version of {@link GenericHID} with {@link Trigger} factories for command-based.

View File

@@ -4,9 +4,9 @@
package org.wpilib.command2.button;
import org.wpilib.command2.CommandScheduler;
import org.wpilib.driverstation.Joystick;
import org.wpilib.event.EventLoop;
import org.wpilib.command2.CommandScheduler;
/**
* A version of {@link Joystick} with {@link Trigger} factories for command-based.

View File

@@ -6,11 +6,11 @@ package org.wpilib.command2.button;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import org.wpilib.math.filter.Debouncer;
import org.wpilib.event.EventLoop;
import java.util.function.BooleanSupplier;
import org.wpilib.command2.Command;
import org.wpilib.command2.CommandScheduler;
import java.util.function.BooleanSupplier;
import org.wpilib.event.EventLoop;
import org.wpilib.math.filter.Debouncer;
/**
* This class provides an easy way to link commands to conditions.

View File

@@ -4,21 +4,21 @@
package org.wpilib.command2.sysid;
import static java.util.Map.entry;
import static org.wpilib.units.Units.Second;
import static org.wpilib.units.Units.Seconds;
import static org.wpilib.units.Units.Volts;
import static java.util.Map.entry;
import java.util.Map;
import java.util.function.Consumer;
import org.wpilib.command2.Command;
import org.wpilib.command2.Subsystem;
import org.wpilib.sysid.SysIdRoutineLog;
import org.wpilib.system.Timer;
import org.wpilib.units.VoltageUnit;
import org.wpilib.units.measure.Time;
import org.wpilib.units.measure.Velocity;
import org.wpilib.units.measure.Voltage;
import org.wpilib.system.Timer;
import org.wpilib.sysid.SysIdRoutineLog;
import org.wpilib.command2.Command;
import org.wpilib.command2.Subsystem;
import java.util.Map;
import java.util.function.Consumer;
/**
* A SysId characterization routine for a single mechanism. Mechanisms may have multiple motors.