Skip to content

Commit

Permalink
Reimplement .isEqualTo, as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelCourtney committed Sep 9, 2024
1 parent d0dfd01 commit afc72b0
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -650,4 +650,13 @@ public int compareTo(final Duration other) {
return Long.compare(this.micros, other.micros);
}

/**
* Delegates to `.equals(other)`.
*
* @deprecated use `.equals` instead.
*/
@Deprecated
public boolean isEqualTo(final Object other) {
return this.equals(other);
}
}

0 comments on commit afc72b0

Please sign in to comment.