typelevel/cats

Make `Hash.fromUniversalHashCode` null safe

Open

#4,831 建立於 2026年2月22日

在 GitHub 查看
 (6 留言) (1 反應) (1 負責人)Scala (5,438 star) (1,241 fork)batch import
good first issue

描述

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

貢獻者指南