hashgraph / hashgraph/full-stack-testing

Update SemanticVersion class to have hashcode function

未关闭
#760 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Bug
主要语言
Java
星标
9
派生
3
PR 合并指标
30 天内没有已合并 PR

描述

According to "Effective Java - Joshua Bloch", Chapter -3 (Item 11): Always override hashCode when you override equals,

This is because, otherwise it would cause issues when using these objects in `HashMap` and `HashSet`

https://github.com/hashgraph/full-stack-testing/blob/main/fullstack-core/fullstack-base-api/src/main/java/com/hedera/fullstack/base/api/version/SemanticVersion.java#L145

Also we need to add relavent unit tests

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。