You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2011/08/16 20:38:27 UTC
[jira] [Commented] (HBASE-4206) jenkins hash implementation uses
longs unnecessarily
[ https://issues.apache.org/jira/browse/HBASE-4206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085894#comment-13085894 ]
stack commented on HBASE-4206:
------------------------------
Any chance of a patch Ron that fixes the above? Thanks.
> jenkins hash implementation uses longs unnecessarily
> ----------------------------------------------------
>
> Key: HBASE-4206
> URL: https://issues.apache.org/jira/browse/HBASE-4206
> Project: HBase
> Issue Type: Improvement
> Components: util
> Reporter: Ron Yang
> Priority: Minor
>
> I don't believe you need to use long for a,b,c and as a result no longer need to & against INT_MASK.
> At a minimum the private static longs should be made final, and the "main" method should not print the absolute value of the hash but instead use something like Integer.toHexString
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira