Upgrade Maven dependencies (#5553)

The following source code changes were required:

* Whitespace changes from spotless
* PMD warning suppressions for utility class tests
* PMD warning rename from "BeanMembersShouldSerialize" to
  "NonSerializableClass"
* Declared more class members as final
This commit is contained in:
Tyler Veness
2023-08-18 19:18:33 -07:00
committed by GitHub
parent 7a2d336d52
commit 96f7fa662e
25 changed files with 66 additions and 38 deletions

View File

@@ -44,8 +44,10 @@ public class Encoder implements CounterBase, Sendable, AutoCloseable {
/** The 'a' source. */
protected DigitalSource m_aSource; // the A phase of the quad encoder
/** The 'b' source. */
protected DigitalSource m_bSource; // the B phase of the quad encoder
/** The index source. */
protected DigitalSource m_indexSource; // Index on some encoders

View File

@@ -35,6 +35,7 @@ import java.util.EnumSet;
public final class Preferences {
/** The Preferences table name. */
private static final String TABLE_NAME = "Preferences";
/** The network table. */
private static NetworkTable m_table;

View File

@@ -24,6 +24,7 @@ import java.util.function.BooleanSupplier;
public class BooleanEvent implements BooleanSupplier {
/** Poller loop. */
protected final EventLoop m_loop;
/** Condition. */
private final BooleanSupplier m_signal;

View File

@@ -36,14 +36,19 @@ import java.util.function.Consumer;
public class SendableChooser<V> implements NTSendable, AutoCloseable {
/** The key for the default value. */
private static final String DEFAULT = "default";
/** The key for the selected option. */
private static final String SELECTED = "selected";
/** The key for the active option. */
private static final String ACTIVE = "active";
/** The key for the option array. */
private static final String OPTIONS = "options";
/** The key for the instance number. */
private static final String INSTANCE = ".instance";
/** A map linking strings to the objects they represent. */
private final Map<String, V> m_map = new LinkedHashMap<>();