mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Upgrade maven deps to latest versions and fix new linter errors (#3772)
This also makes the Gradle build work with JDK 17. The extra JVM args in gradle.properties works around a bug with spotless and JDK 17: https://github.com/diffplug/spotless/issues/834 PMD.CloseResource was ignored because it's almost always a false positive, and there are many of them.
This commit is contained in:
@@ -170,7 +170,7 @@ public final class CommandScheduler implements NTSendable, AutoCloseable {
|
||||
// Do nothing if the scheduler is disabled, the robot is disabled and the command doesn't
|
||||
// run when disabled, or the command is already scheduled.
|
||||
if (m_disabled
|
||||
|| (RobotState.isDisabled() && !command.runsWhenDisabled())
|
||||
|| RobotState.isDisabled() && !command.runsWhenDisabled()
|
||||
|| m_scheduledCommands.containsKey(command)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ public class ParallelDeadlineGroup extends CommandGroupBase {
|
||||
if (commandRunning.getKey().isFinished()) {
|
||||
commandRunning.getKey().end(false);
|
||||
commandRunning.setValue(false);
|
||||
if (commandRunning.getKey() == m_deadline) {
|
||||
if (commandRunning.getKey().equals(m_deadline)) {
|
||||
m_finished = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user