mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[commands] Mark ParallelDeadlineGroup.setDeadline() final (#6102)
Suppress this-escape warning.
This commit is contained in:
@@ -50,7 +50,7 @@ public class ParallelDeadlineGroup extends Command {
|
||||
* @param deadline the command that determines when the group ends
|
||||
* @throws IllegalArgumentException if the deadline command is already in the composition
|
||||
*/
|
||||
public void setDeadline(Command deadline) {
|
||||
public final void setDeadline(Command deadline) {
|
||||
@SuppressWarnings("PMD.CompareObjectsWithEquals")
|
||||
boolean isAlreadyDeadline = deadline == m_deadline;
|
||||
if (isAlreadyDeadline) {
|
||||
|
||||
Reference in New Issue
Block a user