Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-804

Redundant check for zero in HashCodeBuilder ctor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.2
    • lang.builder.*
    • None

    Description

      The HashCodeBuilder(int, int) ctor checks both parameters for zero, as well as checking for an odd number.

      Zero is never odd, so the zero check could be eliminated.

      Attachments

        Activity

          People

            britter Benedikt Ritter
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: