maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Herve Boutemy (JIRA)" <j...@codehaus.org>
Subject [jira] (MCHECKSTYLE-240) add 17 and 31 to ignored MagicNumber
Date Sat, 26 Jul 2014 22:35:10 GMT

     [ https://jira.codehaus.org/browse/MCHECKSTYLE-240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Herve Boutemy closed MCHECKSTYLE-240.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.13
         Assignee: Herve Boutemy

done in [r1613735|http://svn.apache.org/r1613735]

> add 17 and 31 to ignored MagicNumber
> ------------------------------------
>
>                 Key: MCHECKSTYLE-240
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-240
>             Project: Maven Checkstyle Plugin
>          Issue Type: Wish
>    Affects Versions: 2.12.1
>            Reporter: Herve Boutemy
>            Assignee: Herve Boutemy
>             Fix For: 2.13
>
>
> these are classical in hash calculations
> {code:java}      public int hashCode()
>      {
>          int hash = 17;
>          hash = hash * 31 + field1.hashCode();
>          hash = hash * 31 + field2.hashCode();
>          return hash;
>      }{code}



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message