Skip to content

Commit

Permalink
Equalizer: fix warning for unsafe use of .equals
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Jan 18, 2025
1 parent 17e0616 commit 58003f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ trait Equalizer[T] {
object Equalizer {
def default[T]: Equalizer[T] = new Equalizer[T] {
override def equals(original: T, revised: T): Boolean = {
original.equals(revised)
original == revised
}
}
}

0 comments on commit 58003f1

Please sign in to comment.