mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[build] Apply spotless for java formatting (#1768)
Update checkstyle config to be compatible with spotless. Co-authored-by: Austin Shalit <austinshalit@gmail.com>
This commit is contained in:
@@ -14,13 +14,11 @@ public class ReplaceMeCommand extends Command {
|
||||
|
||||
// Called just before this Command runs the first time
|
||||
@Override
|
||||
protected void initialize() {
|
||||
}
|
||||
protected void initialize() {}
|
||||
|
||||
// Called repeatedly when this Command is scheduled to run
|
||||
@Override
|
||||
protected void execute() {
|
||||
}
|
||||
protected void execute() {}
|
||||
|
||||
// Make this return true when this Command no longer needs to run execute()
|
||||
@Override
|
||||
@@ -30,12 +28,10 @@ public class ReplaceMeCommand extends Command {
|
||||
|
||||
// Called once after isFinished returns true
|
||||
@Override
|
||||
protected void end() {
|
||||
}
|
||||
protected void end() {}
|
||||
|
||||
// Called when another command which requires one or more of the same
|
||||
// subsystems is scheduled to run
|
||||
@Override
|
||||
protected void interrupted() {
|
||||
}
|
||||
protected void interrupted() {}
|
||||
}
|
||||
|
||||
@@ -7,27 +7,22 @@ package edu.wpi.first.wpilibj.commands.command2;
|
||||
import edu.wpi.first.wpilibj2.command.CommandBase;
|
||||
|
||||
public class ReplaceMeCommand extends CommandBase {
|
||||
/**
|
||||
* Creates a new ReplaceMeCommand.
|
||||
*/
|
||||
/** Creates a new ReplaceMeCommand. */
|
||||
public ReplaceMeCommand() {
|
||||
// Use addRequirements() here to declare subsystem dependencies.
|
||||
}
|
||||
|
||||
// Called when the command is initially scheduled.
|
||||
@Override
|
||||
public void initialize() {
|
||||
}
|
||||
public void initialize() {}
|
||||
|
||||
// Called every time the scheduler runs while the command is scheduled.
|
||||
@Override
|
||||
public void execute() {
|
||||
}
|
||||
public void execute() {}
|
||||
|
||||
// Called once the command ends or is interrupted.
|
||||
@Override
|
||||
public void end(boolean interrupted) {
|
||||
}
|
||||
public void end(boolean interrupted) {}
|
||||
|
||||
// Returns true when the command should end.
|
||||
@Override
|
||||
|
||||
@@ -7,9 +7,7 @@ package edu.wpi.first.wpilibj.commands.commandgroup;
|
||||
import edu.wpi.first.wpilibj.command.CommandGroup;
|
||||
|
||||
public class ReplaceMeCommandGroup extends CommandGroup {
|
||||
/**
|
||||
* Add your docs here.
|
||||
*/
|
||||
/** Add your docs here. */
|
||||
public ReplaceMeCommandGroup() {
|
||||
// Add Commands here:
|
||||
// e.g. addSequential(new Command1());
|
||||
|
||||
@@ -4,8 +4,5 @@
|
||||
|
||||
package edu.wpi.first.wpilibj.commands.emptyclass;
|
||||
|
||||
/**
|
||||
* Add your docs here.
|
||||
*/
|
||||
public class ReplaceMeEmptyClass {
|
||||
}
|
||||
/** Add your docs here. */
|
||||
public class ReplaceMeEmptyClass {}
|
||||
|
||||
@@ -6,13 +6,9 @@ package edu.wpi.first.wpilibj.commands.instant;
|
||||
|
||||
import edu.wpi.first.wpilibj.command.InstantCommand;
|
||||
|
||||
/**
|
||||
* Add your docs here.
|
||||
*/
|
||||
/** Add your docs here. */
|
||||
public class ReplaceMeInstantCommand extends InstantCommand {
|
||||
/**
|
||||
* Add your docs here.
|
||||
*/
|
||||
/** Add your docs here. */
|
||||
public ReplaceMeInstantCommand() {
|
||||
super();
|
||||
// Use requires() here to declare subsystem dependencies
|
||||
@@ -21,7 +17,5 @@ public class ReplaceMeInstantCommand extends InstantCommand {
|
||||
|
||||
// Called once when the command executes
|
||||
@Override
|
||||
protected void initialize() {
|
||||
}
|
||||
|
||||
protected void initialize() {}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,5 @@ public class ReplaceMeInstantCommand extends InstantCommand {
|
||||
|
||||
// Called when the command is initially scheduled.
|
||||
@Override
|
||||
public void initialize() {
|
||||
}
|
||||
public void initialize() {}
|
||||
}
|
||||
|
||||
@@ -10,9 +10,7 @@ import edu.wpi.first.wpilibj2.command.ParallelCommandGroup;
|
||||
// information, see:
|
||||
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
|
||||
public class ReplaceMeParallelCommandGroup extends ParallelCommandGroup {
|
||||
/**
|
||||
* Creates a new ReplaceMeParallelCommandGroup.
|
||||
*/
|
||||
/** Creates a new ReplaceMeParallelCommandGroup. */
|
||||
public ReplaceMeParallelCommandGroup() {
|
||||
// Add your commands in the addCommands() call, e.g.
|
||||
// addCommands(new FooCommand(), new BarCommand());
|
||||
|
||||
@@ -11,9 +11,7 @@ import edu.wpi.first.wpilibj2.command.ParallelDeadlineGroup;
|
||||
// information, see:
|
||||
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
|
||||
public class ReplaceMeParallelDeadlineGroup extends ParallelDeadlineGroup {
|
||||
/**
|
||||
* Creates a new ReplaceMeParallelDeadlineGroup.
|
||||
*/
|
||||
/** Creates a new ReplaceMeParallelDeadlineGroup. */
|
||||
public ReplaceMeParallelDeadlineGroup() {
|
||||
// Add the deadline command in the super() call. Add other commands using
|
||||
// addCommands().
|
||||
|
||||
@@ -10,9 +10,7 @@ import edu.wpi.first.wpilibj2.command.ParallelRaceGroup;
|
||||
// information, see:
|
||||
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
|
||||
public class ReplaceMeParallelRaceGroup extends ParallelRaceGroup {
|
||||
/**
|
||||
* Creates a new ReplaceMeParallelRaceGroup.
|
||||
*/
|
||||
/** Creates a new ReplaceMeParallelRaceGroup. */
|
||||
public ReplaceMeParallelRaceGroup() {
|
||||
// Add your commands in the addCommands() call, e.g.
|
||||
// addCommands(new FooCommand(), new BarCommand());
|
||||
|
||||
@@ -11,9 +11,7 @@ import edu.wpi.first.wpilibj2.command.PIDCommand;
|
||||
// information, see:
|
||||
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
|
||||
public class ReplaceMePIDCommand extends PIDCommand {
|
||||
/**
|
||||
* Creates a new ReplaceMePIDCommand.
|
||||
*/
|
||||
/** Creates a new ReplaceMePIDCommand. */
|
||||
public ReplaceMePIDCommand() {
|
||||
super(
|
||||
// The controller that the command will use
|
||||
|
||||
@@ -6,13 +6,9 @@ package edu.wpi.first.wpilibj.commands.pidsubsystem;
|
||||
|
||||
import edu.wpi.first.wpilibj.command.PIDSubsystem;
|
||||
|
||||
/**
|
||||
* Add your docs here.
|
||||
*/
|
||||
/** Add your docs here. */
|
||||
public class ReplaceMePIDSubsystem extends PIDSubsystem {
|
||||
/**
|
||||
* Add your docs here.
|
||||
*/
|
||||
/** Add your docs here. */
|
||||
public ReplaceMePIDSubsystem() {
|
||||
// Intert a subsystem name and PID values here
|
||||
super("SubsystemName", 1, 2, 3);
|
||||
|
||||
@@ -8,9 +8,7 @@ import edu.wpi.first.wpilibj.controller.PIDController;
|
||||
import edu.wpi.first.wpilibj2.command.PIDSubsystem;
|
||||
|
||||
public class ReplaceMePIDSubsystem extends PIDSubsystem {
|
||||
/**
|
||||
* Creates a new ReplaceMePIDSubsystem.
|
||||
*/
|
||||
/** Creates a new ReplaceMePIDSubsystem. */
|
||||
public ReplaceMePIDSubsystem() {
|
||||
super(
|
||||
// The PIDController used by the subsystem
|
||||
|
||||
@@ -12,15 +12,15 @@ import edu.wpi.first.wpilibj2.command.ProfiledPIDCommand;
|
||||
// information, see:
|
||||
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
|
||||
public class ReplaceMeProfiledPIDCommand extends ProfiledPIDCommand {
|
||||
/**
|
||||
* Creates a new ReplaceMeProfiledPIDCommand.
|
||||
*/
|
||||
/** Creates a new ReplaceMeProfiledPIDCommand. */
|
||||
public ReplaceMeProfiledPIDCommand() {
|
||||
super(
|
||||
// The ProfiledPIDController used by the command
|
||||
new ProfiledPIDController(
|
||||
// The PID gains
|
||||
0, 0, 0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
// The motion profile constraints
|
||||
new TrapezoidProfile.Constraints(0, 0)),
|
||||
// This should return the measurement
|
||||
|
||||
@@ -9,15 +9,16 @@ import edu.wpi.first.wpilibj.trajectory.TrapezoidProfile;
|
||||
import edu.wpi.first.wpilibj2.command.ProfiledPIDSubsystem;
|
||||
|
||||
public class ReplaceMeProfiledPIDSubsystem extends ProfiledPIDSubsystem {
|
||||
/**
|
||||
* Creates a new ReplaceMeProfiledPIDSubsystem.
|
||||
*/
|
||||
/** Creates a new ReplaceMeProfiledPIDSubsystem. */
|
||||
public ReplaceMeProfiledPIDSubsystem() {
|
||||
super(
|
||||
// The ProfiledPIDController used by the subsystem
|
||||
new ProfiledPIDController(0, 0, 0,
|
||||
// The motion profile constraints
|
||||
new TrapezoidProfile.Constraints(0, 0)));
|
||||
new ProfiledPIDController(
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
// The motion profile constraints
|
||||
new TrapezoidProfile.Constraints(0, 0)));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -10,9 +10,7 @@ import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
|
||||
// information, see:
|
||||
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
|
||||
public class ReplaceMeSequentialCommandGroup extends SequentialCommandGroup {
|
||||
/**
|
||||
* Creates a new ReplaceMeSequentialCommandGroup.
|
||||
*/
|
||||
/** Creates a new ReplaceMeSequentialCommandGroup. */
|
||||
public ReplaceMeSequentialCommandGroup() {
|
||||
// Add your commands in the addCommands() call, e.g.
|
||||
// addCommands(new FooCommand(), new BarCommand());
|
||||
|
||||
@@ -6,9 +6,7 @@ package edu.wpi.first.wpilibj.commands.subsystem;
|
||||
|
||||
import edu.wpi.first.wpilibj.command.Subsystem;
|
||||
|
||||
/**
|
||||
* Add your docs here.
|
||||
*/
|
||||
/** Add your docs here. */
|
||||
public class ReplaceMeSubsystem extends Subsystem {
|
||||
// Put methods for controlling this subsystem
|
||||
// here. Call these from Commands.
|
||||
|
||||
@@ -7,12 +7,8 @@ package edu.wpi.first.wpilibj.commands.subsystem2;
|
||||
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
||||
|
||||
public class ReplaceMeSubsystem extends SubsystemBase {
|
||||
/**
|
||||
* Creates a new ReplaceMeSubsystem.
|
||||
*/
|
||||
public ReplaceMeSubsystem() {
|
||||
|
||||
}
|
||||
/** Creates a new ReplaceMeSubsystem. */
|
||||
public ReplaceMeSubsystem() {}
|
||||
|
||||
@Override
|
||||
public void periodic() {
|
||||
|
||||
@@ -6,13 +6,9 @@ package edu.wpi.first.wpilibj.commands.timed;
|
||||
|
||||
import edu.wpi.first.wpilibj.command.TimedCommand;
|
||||
|
||||
/**
|
||||
* Add your docs here.
|
||||
*/
|
||||
/** Add your docs here. */
|
||||
public class ReplaceMeTimedCommand extends TimedCommand {
|
||||
/**
|
||||
* Add your docs here.
|
||||
*/
|
||||
/** Add your docs here. */
|
||||
public ReplaceMeTimedCommand(double timeout) {
|
||||
super(timeout);
|
||||
// Use requires() here to declare subsystem dependencies
|
||||
@@ -21,22 +17,18 @@ public class ReplaceMeTimedCommand extends TimedCommand {
|
||||
|
||||
// Called just before this Command runs the first time
|
||||
@Override
|
||||
protected void initialize() {
|
||||
}
|
||||
protected void initialize() {}
|
||||
|
||||
// Called repeatedly when this Command is scheduled to run
|
||||
@Override
|
||||
protected void execute() {
|
||||
}
|
||||
protected void execute() {}
|
||||
|
||||
// Called once after timeout
|
||||
@Override
|
||||
protected void end() {
|
||||
}
|
||||
protected void end() {}
|
||||
|
||||
// Called when another command which requires one or more of the same
|
||||
// subsystems is scheduled to run
|
||||
@Override
|
||||
protected void interrupted() {
|
||||
}
|
||||
protected void interrupted() {}
|
||||
}
|
||||
|
||||
@@ -11,9 +11,7 @@ import edu.wpi.first.wpilibj2.command.TrapezoidProfileCommand;
|
||||
// information, see:
|
||||
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
|
||||
public class ReplaceMeTrapezoidProfileCommand extends TrapezoidProfileCommand {
|
||||
/**
|
||||
* Creates a new ReplaceMeTrapezoidProfileCommand.
|
||||
*/
|
||||
/** Creates a new ReplaceMeTrapezoidProfileCommand. */
|
||||
public ReplaceMeTrapezoidProfileCommand() {
|
||||
super(
|
||||
// The motion profile to be executed
|
||||
|
||||
@@ -8,9 +8,7 @@ import edu.wpi.first.wpilibj.trajectory.TrapezoidProfile;
|
||||
import edu.wpi.first.wpilibj2.command.TrapezoidProfileSubsystem;
|
||||
|
||||
public class ReplaceMeTrapezoidProfileSubsystem extends TrapezoidProfileSubsystem {
|
||||
/**
|
||||
* Creates a new ReplaceMeTrapezoidProfileSubsystem.
|
||||
*/
|
||||
/** Creates a new ReplaceMeTrapezoidProfileSubsystem. */
|
||||
public ReplaceMeTrapezoidProfileSubsystem() {
|
||||
super(
|
||||
// The constraints for the generated profiles
|
||||
|
||||
@@ -6,9 +6,7 @@ package edu.wpi.first.wpilibj.commands.trigger;
|
||||
|
||||
import edu.wpi.first.wpilibj.buttons.Trigger;
|
||||
|
||||
/**
|
||||
* Add your docs here.
|
||||
*/
|
||||
/** Add your docs here. */
|
||||
public class ReplaceMeTrigger extends Trigger {
|
||||
@Override
|
||||
public boolean get() {
|
||||
|
||||
Reference in New Issue
Block a user