typelevel/cats

Make `Hash.fromUniversalHashCode` null safe

Ouverte

#4 831 ouverte le 22 févr. 2026

 (6 commentaires) (1 réaction) (1 personne assignée)Scala (1 241 forks)batch import
good first issue

Métriques du dépôt

Stars
 (5 438 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

Similarly to how Show.fromToString have been recently made null safe (#4689 and #4790), I propose making Hash.fromUniversalHashCode also null safe. Specifically, I think it should use x.## instead of x.hashCode(). (The eqv method is already fine, as it uses ==.)

Guide contributeur