Remove extra newlines after open curly braces (NFC) (#3471)

This commit is contained in:
Tyler Veness
2021-07-09 00:41:30 -04:00
committed by GitHub
parent a4233e1a16
commit 9d68d95825
47 changed files with 0 additions and 67 deletions

View File

@@ -40,7 +40,6 @@ public class DoubleSolenoid implements Sendable, AutoCloseable {
* @param reverseChannel The reverse channel on the module to control (0..7).
*/
public DoubleSolenoid(PneumaticsBase module, final int forwardChannel, final int reverseChannel) {
m_module = Objects.requireNonNull(module, "Module cannot be null");
// TODO check channels

View File

@@ -5,7 +5,6 @@
package edu.wpi.first.wpilibj;
public interface PneumaticsBase extends AutoCloseable {
/**
* Sets solenoids on a pneumatics module.
*

View File

@@ -41,7 +41,6 @@ public abstract class RobotBase implements AutoCloseable {
private static void setupCameraServerShared() {
CameraServerShared shared =
new CameraServerShared() {
@Override
public void reportVideoServer(int id) {
HAL.report(tResourceType.kResourceType_PCVideoServer, id + 1);

View File

@@ -14,7 +14,6 @@ import java.util.function.Supplier;
/** Common interface for objects that can contain shuffleboard components. */
public interface ShuffleboardContainer extends ShuffleboardValue {
/**
* Gets the components that are direct children of this container.
*

View File

@@ -11,7 +11,6 @@ package edu.wpi.first.wpilibj.shuffleboard;
* <p>This class is package-private to minimize API surface area.
*/
interface ShuffleboardRoot {
/**
* Gets the tab with the given title, creating it if it does not already exist.
*

View File

@@ -7,7 +7,6 @@ package edu.wpi.first.wpilibj.shuffleboard;
import edu.wpi.first.networktables.NetworkTable;
interface ShuffleboardValue {
/**
* Gets the title of this Shuffleboard value.
*

View File

@@ -13,7 +13,6 @@ package edu.wpi.first.wpilibj.shuffleboard;
*/
abstract class ShuffleboardWidget<W extends ShuffleboardWidget<W>>
extends ShuffleboardComponent<W> {
ShuffleboardWidget(ShuffleboardContainer parent, String title) {
super(parent, title);
}

View File

@@ -155,7 +155,6 @@ public class DifferentialDrivetrainSim {
*/
@SuppressWarnings("LocalVariableName")
public void update(double dtSeconds) {
// Update state estimate with RK4
m_x = NumericalIntegration.rk4(this::getDynamics, m_x, m_u, dtSeconds);
m_y = m_x;
@@ -319,7 +318,6 @@ public class DifferentialDrivetrainSim {
@SuppressWarnings({"DuplicatedCode", "LocalVariableName", "ParameterName"})
protected Matrix<N7, N1> getDynamics(Matrix<N7, N1> x, Matrix<N2, N1> u) {
// Because G can be factored out of B, we can divide by the old ratio and multiply
// by the new ratio to get a new drivetrain model.
var B = new Matrix<>(Nat.N4(), Nat.N2());