typelevel/cats

Make `Hash.fromUniversalHashCode` null safe

Open

#4,831 opened on 2026年2月22日

GitHub で見る
 (6 comments) (1 reaction) (1 assignee)Scala (1,241 forks)batch import
good first issue

Repository metrics

Stars
 (5,438 stars)
PR merge metrics
 (平均マージ 4h 2m) (30d で 5 merged PRs)

説明

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

コントリビューターガイド