[wpilibj] Fix this-escape warnings from JDK 21 (#6856)

This commit is contained in:
Tyler Veness
2024-07-18 22:43:55 -07:00
committed by GitHub
parent f561a77e75
commit e9efb05cd3
3 changed files with 3 additions and 0 deletions

View File

@@ -239,6 +239,7 @@ public class ADIS16448_IMU implements AutoCloseable, Sendable {
* @param port The SPI Port the gyro is plugged into
* @param cal_time Calibration time
*/
@SuppressWarnings("this-escape")
public ADIS16448_IMU(final IMUAxis yaw_axis, SPI.Port port, CalibrationTime cal_time) {
m_yaw_axis = yaw_axis;
m_spi_port = port;

View File

@@ -278,6 +278,7 @@ public class ADIS16470_IMU implements AutoCloseable, Sendable {
* @param port The SPI Port the gyro is plugged into
* @param cal_time Calibration time
*/
@SuppressWarnings("this-escape")
public ADIS16470_IMU(
IMUAxis yaw_axis,
IMUAxis pitch_axis,