Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 07FF783C5 for ; Tue, 16 Aug 2011 18:38:50 +0000 (UTC) Received: (qmail 76410 invoked by uid 500); 16 Aug 2011 18:38:49 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 76327 invoked by uid 500); 16 Aug 2011 18:38:49 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 76311 invoked by uid 99); 16 Aug 2011 18:38:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 18:38:48 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 18:38:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8CBE7BFD9B for ; Tue, 16 Aug 2011 18:38:27 +0000 (UTC) Date: Tue, 16 Aug 2011 18:38:27 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: <1930923312.42209.1313519907572.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <719660872.41875.1313512779897.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4206) jenkins hash implementation uses longs unnecessarily MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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