mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[build] Change defaults for Java lints (#4300)
Removes the need to individually suppress the "serial" warning.
This commit is contained in:
@@ -351,8 +351,7 @@ public class ADIS16448_IMU implements AutoCloseable, NTSendable {
|
||||
|
||||
/** */
|
||||
private static int toInt(int... buf) {
|
||||
return (int)
|
||||
((buf[0] & 0xFF) << 24 | (buf[1] & 0xFF) << 16 | (buf[2] & 0xFF) << 8 | (buf[3] & 0xFF));
|
||||
return (buf[0] & 0xFF) << 24 | (buf[1] & 0xFF) << 16 | (buf[2] & 0xFF) << 8 | (buf[3] & 0xFF);
|
||||
}
|
||||
|
||||
/** */
|
||||
|
||||
@@ -392,8 +392,7 @@ public class ADIS16470_IMU implements AutoCloseable, NTSendable {
|
||||
* @return
|
||||
*/
|
||||
private static int toInt(int... buf) {
|
||||
return (int)
|
||||
((buf[0] & 0xFF) << 24 | (buf[1] & 0xFF) << 16 | (buf[2] & 0xFF) << 8 | (buf[3] & 0xFF));
|
||||
return (buf[0] & 0xFF) << 24 | (buf[1] & 0xFF) << 16 | (buf[2] & 0xFF) << 8 | (buf[3] & 0xFF);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,7 +16,6 @@ import edu.wpi.first.wpilibj.AnalogTriggerOutput.AnalogTriggerType;
|
||||
/** Class for creating and configuring Analog Triggers. */
|
||||
public class AnalogTrigger implements Sendable, AutoCloseable {
|
||||
/** Exceptions dealing with improper operation of the Analog trigger. */
|
||||
@SuppressWarnings("serial")
|
||||
public static class AnalogTriggerException extends RuntimeException {
|
||||
/**
|
||||
* Create a new exception with the given message.
|
||||
|
||||
@@ -40,7 +40,6 @@ import edu.wpi.first.util.sendable.SendableBuilder;
|
||||
*/
|
||||
public class AnalogTriggerOutput extends DigitalSource implements Sendable {
|
||||
/** Exceptions dealing with improper operation of the Analog trigger output. */
|
||||
@SuppressWarnings("serial")
|
||||
public static class AnalogTriggerOutputException extends RuntimeException {
|
||||
/**
|
||||
* Create a new exception with the given message.
|
||||
|
||||
@@ -31,7 +31,6 @@ public class Relay extends MotorSafety implements Sendable, AutoCloseable {
|
||||
* This class represents errors in trying to set relay values contradictory to the direction to
|
||||
* which the relay is set.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public static class InvalidValueException extends RuntimeException {
|
||||
/**
|
||||
* Create a new exception with the given message.
|
||||
|
||||
Reference in New Issue
Block a user