Fix multiple Java warnings (#6201)

This commit is contained in:
Thad House
2024-01-12 08:46:21 -08:00
committed by GitHub
parent ba9c21cf38
commit 1981b8debd
15 changed files with 44 additions and 34 deletions

View File

@@ -9,6 +9,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import edu.wpi.first.wpilibj.motorcontrol.MockPWMMotorController;
import org.junit.jupiter.api.Test;
@SuppressWarnings("resource")
class DifferentialDriveTest {
@Test
void testArcadeDriveIK() {

View File

@@ -10,6 +10,7 @@ import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.wpilibj.motorcontrol.MockPWMMotorController;
import org.junit.jupiter.api.Test;
@SuppressWarnings("resource")
class MecanumDriveTest {
@Test
void testCartesianIK() {

View File

@@ -22,6 +22,7 @@ class ElevatorSimTest {
void testStateSpaceSimWithElevator() {
RoboRioSim.resetData();
@SuppressWarnings("resource")
var controller = new PIDController(10, 0, 0);
var sim =