typelevel/cats

Make `Hash.fromUniversalHashCode` null safe

オープン

#4,831 opened on 2026/02/22

 (6 件のコメント) (1 件のリアクション) (1 人の担当者)Scala (1,241 件のフォーク)batch import
good first issue

Repository metrics

Stars
 (5,438 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

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