typelevel/cats

Make `Hash.fromUniversalHashCode` null safe

Open

#4.831 aberto em 22 de fev. de 2026

Ver no GitHub
 (6 comments) (1 reaction) (1 assignee)Scala (1.241 forks)batch import
good first issue

Métricas do repositório

Stars
 (5.438 stars)
Métricas de merge de PR
 (Mesclagem média 4h 2m) (5 fundiu PRs em 30d)

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

Guia do colaborador