typelevel/cats

Make `Hash.fromUniversalHashCode` null safe

Open

#4.831 geöffnet am 22. Feb. 2026

Auf GitHub ansehen
 (6 Kommentare) (1 Reaktion) (1 zugewiesene Person)Scala (1.241 Forks)batch import
good first issue

Repository-Metriken

Stars
 (5.438 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 4h 2m) (5 gemergte PRs in 30 T)

Beschreibung

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 ==.)

Contributor Guide