Skip to content

Commit

Permalink
[commands] Mark ParallelDeadlineGroup.setDeadline() final (wpilibsuit…
Browse files Browse the repository at this point in the history
…e#6102)

Suppress this-escape warning.
  • Loading branch information
calcmogul authored and Oblarg committed Dec 30, 2023
1 parent 1817d37 commit 900adc5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public ParallelDeadlineGroup(Command deadline, Command... otherCommands) {
* @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) {
Expand Down

0 comments on commit 900adc5

Please sign in to comment.