[wpilibj] Suppress serialVersionUID warnings (#2618)

These are all classes (e.g. Exception classes) which will never be serialized.
This commit is contained in:
Peter Johnson
2020-07-26 17:06:17 -07:00
committed by GitHub
parent 0fe2319dfc
commit 5cf4c16f5b
12 changed files with 21 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2008-2019 FIRST. All Rights Reserved. */
/* Copyright (c) 2008-2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
@@ -23,6 +23,7 @@ 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

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2008-2019 FIRST. All Rights Reserved. */
/* Copyright (c) 2008-2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
@@ -44,6 +44,7 @@ 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

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2008-2019 FIRST. All Rights Reserved. */
/* Copyright (c) 2008-2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
@@ -33,6 +33,7 @@ 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.

View File

@@ -62,6 +62,7 @@ public final class SplineParameterizer {
}
}
@SuppressWarnings("serial")
public static class MalformedSplineException extends RuntimeException {
/**
* Create a new exception with the given message.

View File

@@ -232,6 +232,7 @@ public final class TrajectoryGenerator {
}
// Work around type erasure signatures
@SuppressWarnings("serial")
public static class ControlVectorList extends ArrayList<Spline.ControlVector> {
public ControlVectorList(int initialCapacity) {
super(initialCapacity);

View File

@@ -309,6 +309,7 @@ public final class TrajectoryParameterizer {
}
}
@SuppressWarnings("serial")
public static class TrajectoryGenerationException extends RuntimeException {
public TrajectoryGenerationException(String message) {
super(message);