[ https://issues.apache.org/jira/browse/HDFS-288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12746489#action_12746489 ]
Hadoop QA commented on HDFS-288: -------------------------------- -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12417193/h288_20090820.patch against trunk revision 806746. +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. -1 core tests. The patch failed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hdfs-Patch-vesta.apache.org/81/testReport/ Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hdfs-Patch-vesta.apache.org/81/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hdfs-Patch-vesta.apache.org/81/artifact/trunk/build/test/checkstyle-errors.html Console output: http://hudson.zones.apache.org/hudson/job/Hdfs-Patch-vesta.apache.org/81/console This message is automatically generated. > Redundant computation in hashCode() implemenation > ------------------------------------------------- > > Key: HDFS-288 > URL: https://issues.apache.org/jira/browse/HDFS-288 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: Tsz Wo (Nicholas), SZE > Assignee: Tsz Wo (Nicholas), SZE > Attachments: h288_20090820.patch > > > In some hashCode() implementation (e.g. Block.hashCode()), the formula has > the form > {noformat} > 37 * 17 + f(x), > {noformat} > where f( x ) is some function. Adding 37*17 to f( x ) shifts the value of f( > x ). It is not effective to do shifting in hash functions. The computation > is redundant. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.