commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LANG-804) Redundant check for zero in HashCodeBuilder ctor
Date Tue, 29 May 2012 18:19:23 GMT
Sebb created LANG-804:
-------------------------

             Summary: Redundant check for zero in HashCodeBuilder ctor
                 Key: LANG-804
                 URL: https://issues.apache.org/jira/browse/LANG-804
             Project: Commons Lang
          Issue Type: Improvement
            Reporter: Sebb
            Priority: Minor


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message