mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
[build] Enable spotbugs (#3601)
Benign spotbugs warnings were suppressed, and all others were fixed. Bug descriptions are documented here: https://spotbugs.readthedocs.io/en/stable/bugDescriptions.html Co-authored-by: Austin Shalit <austinshalit@gmail.com>
This commit is contained in:
@@ -16,7 +16,7 @@ public class FakeCounterSource implements AutoCloseable {
|
||||
private boolean m_allocated;
|
||||
|
||||
/** Thread object that allows emulation of an encoder. */
|
||||
private class EncoderThread extends Thread {
|
||||
private static class EncoderThread extends Thread {
|
||||
FakeCounterSource m_encoder;
|
||||
|
||||
EncoderThread(FakeCounterSource encode) {
|
||||
|
||||
@@ -18,7 +18,7 @@ public class FakeEncoderSource implements AutoCloseable {
|
||||
private final boolean m_allocatedOutputs;
|
||||
|
||||
/** Thread object that allows emulation of a quadrature encoder. */
|
||||
private class QuadEncoderThread extends Thread {
|
||||
private static class QuadEncoderThread extends Thread {
|
||||
FakeEncoderSource m_encoder;
|
||||
|
||||
QuadEncoderThread(FakeEncoderSource encode) {
|
||||
|
||||
Reference in New Issue
Block a user