Details
-
Bug
-
Status: Resolved
-
P3
-
Resolution: Fixed
-
None
Description
FindBugs DM_NEXTINT_VIA_NEXTDOUBLE: Use the nextInt method of Random rather than nextDouble to generate a random integer
Applies to: ProxyInvocationHandler.hashCode. This random value is used as a pseudo-unique value for #hashCode(), although the default Object.hasCode() implementation does the same thing, so this should be unnecessary.
This is a good starter bug. When fixing, please remove the corresponding entries from findbugs-filter.xml and verify the build passes.
Attachments
Issue Links
- links to