Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-408

ProxyInvocationHandler uses inefficient Math.random() for random int

Details

    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

          Activity

            People

              lucasamorim Lucas Amorim
              swegner Scott Wegner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: