mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpilibj] Fix this-escape warnings from JDK 21 (#6856)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user