Skip to content

Commit

Permalink
[commands] Mark ParallelDeadlineGroup.setDeadline() final (#6102)
Browse files Browse the repository at this point in the history
Suppress this-escape warning.
  • Loading branch information
calcmogul authored Dec 27, 2023
1 parent 141241d commit e07de37
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 e07de37

Please sign in to comment.