googleapis/google-cloud-java
在 GitHub 查看[java-spanner] test: OptionsTest checks for fixed values being returned from hashCode()
Open
#12,268 建立於 2020年11月3日
api: spannergood first issuehelp wantedtype: cleanup
倉庫指標
- Star
- (1,763 star)
- PR 合併指標
- (平均合併 2天 21小時) (30 天內合併 145 個 PR)
描述
The Options#hashCode() method does not guarantee to return a fixed value that is equal on all JVM's (at least; the documentation does not guarantee it). In reality it does, because the current implementation only uses hash codes that are guaranteed to be equal on all JVM's. The method should either be documented to have this behavior, or these tests should be replaced with tests that assert that the hashCode and equals methods comply with the general contract regarding these methods.