[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:
Tyler Veness
2021-09-24 16:04:02 -07:00
committed by GitHub
parent b65fce86bf
commit 95dd20a151
73 changed files with 356 additions and 558 deletions

View File

@@ -18,7 +18,7 @@ public abstract class AbstractCommandTest {
Scheduler.getInstance().enable();
}
public class ASubsystem extends Subsystem {
public static class ASubsystem extends Subsystem {
Command m_command;
@Override

View File

@@ -17,7 +17,6 @@ class ConditionalCommandTest extends AbstractCommandTest {
MockCommand m_onTrue;
MockCommand m_onFalse;
MockSubsystem m_subsys;
Boolean m_condition;
@BeforeEach
void initCommands() {