[build] Change defaults for Java lints (#4300)

Removes the need to individually suppress the "serial" warning.
This commit is contained in:
Starlight220
2022-06-07 03:06:43 +03:00
committed by GitHub
parent a4787130f4
commit f2d243fa68
16 changed files with 12 additions and 21 deletions

View File

@@ -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);
}
/** */

View File

@@ -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);
}
/**

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.