You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ObjectsHashCodeUnnecessaryVarargs recommended that I should change Objects.hash to Objects.hashCode.
It did not warn that the hash generated by the two methods can be different for the same object.
If someone has stored those hashes (though one should arguably use Guava's Hashing for persisted hashes), this could cause false mismatches (which in turn could lead to things like cache misses).
What did you want to happen?
The check should warn users that the hashcode generated by Objects.hash and Objects.hashCode can be different and maybe call out explicitly the edge-case of persisted hashes.
The text was updated successfully, but these errors were encountered:
What happened?
The
ObjectsHashCodeUnnecessaryVarargs
recommended that I should changeObjects.hash
toObjects.hashCode
.It did not warn that the hash generated by the two methods can be different for the same object.
If someone has stored those hashes (though one should arguably use Guava's
Hashing
for persisted hashes), this could cause false mismatches (which in turn could lead to things like cache misses).What did you want to happen?
The check should warn users that the hashcode generated by
Objects.hash
andObjects.hashCode
can be different and maybe call out explicitly the edge-case of persisted hashes.The text was updated successfully, but these errors were encountered: