mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
[wpilibj] Fix this-escape warnings from JDK 21 (#6856)
This commit is contained in:
@@ -201,6 +201,7 @@ public class AprilTagDetector implements AutoCloseable {
|
||||
}
|
||||
|
||||
/** Constructs an AprilTagDetector. */
|
||||
@SuppressWarnings("this-escape")
|
||||
public AprilTagDetector() {
|
||||
m_native = AprilTagJNI.createDetector();
|
||||
setQuadThresholdParameters(new QuadThresholdParameters());
|
||||
|
||||
@@ -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