SCRIPT Run java package replacements

This commit is contained in:
PJ Reiniger
2025-11-07 19:55:43 -05:00
committed by Peter Johnson
parent 12823a003d
commit f0a3c64121
1590 changed files with 8469 additions and 8469 deletions

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
import edu.wpi.first.util.ErrorMessages;
import org.wpilib.util.ErrorMessages;
/**
* A single trigger binding.

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
/**
* A scope for when a binding is live. Bindings tied to a scope must be deleted when the scope

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
/** Describes when a command bound to a trigger should run. */
enum BindingType {

View File

@@ -2,11 +2,11 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
import static edu.wpi.first.util.ErrorMessages.requireNonNullParam;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import edu.wpi.first.units.measure.Time;
import org.wpilib.units.measure.Time;
import java.util.Collection;
import java.util.Collections;
import java.util.Set;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
import static java.util.Objects.requireNonNull;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
import java.util.ArrayList;
import java.util.List;
@@ -30,7 +30,7 @@ final class CommandTraceHelper {
Coroutine.class.getName(),
Continuation.class.getName(),
Scheduler.class.getName(),
"org.wpilib.commands3.StagedCommandBuilder$BuilderBackedCommand",
"org.wpilib.command3.StagedCommandBuilder$BuilderBackedCommand",
"jdk.internal.vm.Continuation");
boolean sawRun = false;

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
import static edu.wpi.first.util.ErrorMessages.requireNonNullParam;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import java.util.ArrayList;
import java.util.Collection;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;

View File

@@ -2,13 +2,13 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
import static edu.wpi.first.units.Units.Seconds;
import static edu.wpi.first.util.ErrorMessages.requireNonNullParam;
import static org.wpilib.units.Units.Seconds;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import edu.wpi.first.units.measure.Time;
import edu.wpi.first.wpilibj.Timer;
import org.wpilib.units.measure.Time;
import org.wpilib.system.Timer;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
import edu.wpi.first.units.measure.Time;
import org.wpilib.units.measure.Time;
import java.util.List;
import java.util.function.Consumer;
import org.wpilib.annotation.NoDiscard;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
import java.util.Collection;
import java.util.function.Consumer;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
import java.util.function.BooleanSupplier;
import java.util.function.Consumer;

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
import static edu.wpi.first.util.ErrorMessages.requireNonNullParam;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import java.util.Collection;
import java.util.HashSet;

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
import static edu.wpi.first.util.ErrorMessages.requireNonNullParam;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import java.util.Arrays;
import java.util.LinkedHashSet;

View File

@@ -2,16 +2,16 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
import static edu.wpi.first.units.Units.Microseconds;
import static edu.wpi.first.units.Units.Milliseconds;
import static org.wpilib.units.Units.Microseconds;
import static org.wpilib.units.Units.Milliseconds;
import edu.wpi.first.util.ErrorMessages;
import edu.wpi.first.util.protobuf.ProtobufSerializable;
import edu.wpi.first.wpilibj.RobotController;
import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj.event.EventLoop;
import org.wpilib.util.ErrorMessages;
import org.wpilib.util.protobuf.ProtobufSerializable;
import org.wpilib.system.RobotController;
import org.wpilib.opmode.TimedRobot;
import org.wpilib.event.EventLoop;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
@@ -27,8 +27,8 @@ import java.util.Stack;
import java.util.function.Consumer;
import java.util.stream.Collectors;
import org.wpilib.annotation.NoDiscard;
import org.wpilib.commands3.button.CommandGenericHID;
import org.wpilib.commands3.proto.SchedulerProto;
import org.wpilib.command3.button.CommandGenericHID;
import org.wpilib.command3.proto.SchedulerProto;
/**
* Manages the lifecycles of {@link Coroutine}-based {@link Command Commands}. Commands may be

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
import edu.wpi.first.wpilibj.RobotController;
import org.wpilib.system.RobotController;
import java.util.function.Consumer;
/**

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
import static edu.wpi.first.util.ErrorMessages.requireNonNullParam;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import java.util.ArrayList;
import java.util.HashSet;

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
import static edu.wpi.first.util.ErrorMessages.requireNonNullParam;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import java.util.ArrayList;
import java.util.Arrays;

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
import static edu.wpi.first.util.ErrorMessages.requireNonNullParam;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import java.util.Arrays;
import java.util.Collection;

View File

@@ -2,14 +2,14 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3;
package org.wpilib.command3;
import static edu.wpi.first.units.Units.Seconds;
import static edu.wpi.first.util.ErrorMessages.requireNonNullParam;
import static org.wpilib.units.Units.Seconds;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import edu.wpi.first.math.filter.Debouncer;
import edu.wpi.first.units.measure.Time;
import edu.wpi.first.wpilibj.event.EventLoop;
import org.wpilib.math.filter.Debouncer;
import org.wpilib.units.measure.Time;
import org.wpilib.event.EventLoop;
import java.util.ArrayList;
import java.util.EnumMap;
import java.util.List;
@@ -19,7 +19,7 @@ import java.util.function.BooleanSupplier;
/**
* Triggers allow users to specify conditions for when commands should run. Triggers can be set up
* to read from joystick and controller buttons (eg {@link
* org.wpilib.commands3.button.CommandXboxController#x()}) or be customized to read sensor values or
* org.wpilib.command3.button.CommandXboxController#x()}) or be customized to read sensor values or
* any other arbitrary true/false condition.
*
* <p>It is very easy to link a button to a command. For instance, you could link the trigger button

View File

@@ -2,12 +2,12 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3.button;
package org.wpilib.command3.button;
import edu.wpi.first.wpilibj.Gamepad;
import edu.wpi.first.wpilibj.event.EventLoop;
import org.wpilib.commands3.Scheduler;
import org.wpilib.commands3.Trigger;
import org.wpilib.driverstation.Gamepad;
import org.wpilib.event.EventLoop;
import org.wpilib.command3.Scheduler;
import org.wpilib.command3.Trigger;
/**
* A version of {@link Gamepad} with {@link Trigger} factories for command-based.

View File

@@ -2,16 +2,16 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3.button;
package org.wpilib.command3.button;
import edu.wpi.first.math.Pair;
import edu.wpi.first.wpilibj.DriverStation.POVDirection;
import edu.wpi.first.wpilibj.GenericHID;
import edu.wpi.first.wpilibj.event.EventLoop;
import org.wpilib.math.util.Pair;
import org.wpilib.driverstation.DriverStation.POVDirection;
import org.wpilib.driverstation.GenericHID;
import org.wpilib.event.EventLoop;
import java.util.HashMap;
import java.util.Map;
import org.wpilib.commands3.Scheduler;
import org.wpilib.commands3.Trigger;
import org.wpilib.command3.Scheduler;
import org.wpilib.command3.Trigger;
/**
* A version of {@link GenericHID} with {@link Trigger} factories for command-based.

View File

@@ -2,12 +2,12 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3.button;
package org.wpilib.command3.button;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.event.EventLoop;
import org.wpilib.commands3.Scheduler;
import org.wpilib.commands3.Trigger;
import org.wpilib.driverstation.Joystick;
import org.wpilib.event.EventLoop;
import org.wpilib.command3.Scheduler;
import org.wpilib.command3.Trigger;
/**
* A version of {@link Joystick} with {@link Trigger} factories for command-based.

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3.button;
package org.wpilib.command3.button;
import java.util.concurrent.atomic.AtomicBoolean;
import org.wpilib.commands3.Trigger;
import org.wpilib.command3.Trigger;
/**
* This class is intended to be used within a program. The programmer can manually set its value.

View File

@@ -2,12 +2,12 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3.button;
package org.wpilib.command3.button;
import static edu.wpi.first.util.ErrorMessages.requireNonNullParam;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import edu.wpi.first.wpilibj.GenericHID;
import org.wpilib.commands3.Trigger;
import org.wpilib.driverstation.GenericHID;
import org.wpilib.command3.Trigger;
/** A {@link Trigger} that gets its state from a {@link GenericHID}. */
public class JoystickButton extends Trigger {

View File

@@ -2,15 +2,15 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3.button;
package org.wpilib.command3.button;
import static edu.wpi.first.util.ErrorMessages.requireNonNullParam;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import edu.wpi.first.networktables.BooleanSubscriber;
import edu.wpi.first.networktables.BooleanTopic;
import edu.wpi.first.networktables.NetworkTable;
import edu.wpi.first.networktables.NetworkTableInstance;
import org.wpilib.commands3.Trigger;
import org.wpilib.networktables.BooleanSubscriber;
import org.wpilib.networktables.BooleanTopic;
import org.wpilib.networktables.NetworkTable;
import org.wpilib.networktables.NetworkTableInstance;
import org.wpilib.command3.Trigger;
/** A {@link Trigger} that uses a {@link NetworkTable} boolean field. */
public class NetworkButton extends Trigger {

View File

@@ -2,13 +2,13 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3.button;
package org.wpilib.command3.button;
import static edu.wpi.first.util.ErrorMessages.requireNonNullParam;
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
import edu.wpi.first.wpilibj.DriverStation.POVDirection;
import edu.wpi.first.wpilibj.GenericHID;
import org.wpilib.commands3.Trigger;
import org.wpilib.driverstation.DriverStation.POVDirection;
import org.wpilib.driverstation.GenericHID;
import org.wpilib.command3.Trigger;
/** A {@link Trigger} that gets its state from a POV on a {@link GenericHID}. */
public class POVButton extends Trigger {

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3.button;
package org.wpilib.command3.button;
import edu.wpi.first.wpilibj.DriverStation;
import org.wpilib.commands3.Trigger;
import org.wpilib.driverstation.DriverStation;
import org.wpilib.command3.Trigger;
/**
* A class containing static {@link Trigger} factories for running callbacks when the robot mode

View File

@@ -2,13 +2,13 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3.proto;
package org.wpilib.command3.proto;
import edu.wpi.first.util.protobuf.Protobuf;
import org.wpilib.commands3.Command;
import org.wpilib.commands3.Mechanism;
import org.wpilib.commands3.Scheduler;
import org.wpilib.commands3.proto.ProtobufCommands.ProtobufCommand;
import org.wpilib.util.protobuf.Protobuf;
import org.wpilib.command3.Command;
import org.wpilib.command3.Mechanism;
import org.wpilib.command3.Scheduler;
import org.wpilib.command3.proto.ProtobufCommands.ProtobufCommand;
import us.hebi.quickbuf.Descriptors;
/** Protobuf serde for running commands. */

View File

@@ -2,11 +2,11 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3.proto;
package org.wpilib.command3.proto;
import edu.wpi.first.util.protobuf.Protobuf;
import org.wpilib.commands3.Mechanism;
import org.wpilib.commands3.proto.ProtobufCommands.ProtobufMechanism;
import org.wpilib.util.protobuf.Protobuf;
import org.wpilib.command3.Mechanism;
import org.wpilib.command3.proto.ProtobufCommands.ProtobufMechanism;
import us.hebi.quickbuf.Descriptors;
public class MechanismProto implements Protobuf<Mechanism, ProtobufMechanism> {

View File

@@ -2,12 +2,12 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.wpilib.commands3.proto;
package org.wpilib.command3.proto;
import edu.wpi.first.util.protobuf.Protobuf;
import org.wpilib.commands3.Command;
import org.wpilib.commands3.Scheduler;
import org.wpilib.commands3.proto.ProtobufCommands.ProtobufScheduler;
import org.wpilib.util.protobuf.Protobuf;
import org.wpilib.command3.Command;
import org.wpilib.command3.Scheduler;
import org.wpilib.command3.proto.ProtobufCommands.ProtobufScheduler;
import us.hebi.quickbuf.Descriptors;
/**