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 D249410720 for ; Sun, 13 Oct 2013 00:17:42 +0000 (UTC) Received: (qmail 50177 invoked by uid 500); 13 Oct 2013 00:17:42 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 50138 invoked by uid 500); 13 Oct 2013 00:17:42 -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 50130 invoked by uid 99); 13 Oct 2013 00:17:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Oct 2013 00:17:42 +0000 Date: Sun, 13 Oct 2013 00:17:42 +0000 (UTC) From: "Gustavo Anatoly (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (HBASE-9589) Bytes#LexicographicalComparerHolder#UnsafeComparer#compareTo() has dead code 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-9589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gustavo Anatoly reassigned HBASE-9589: -------------------------------------- Assignee: Gustavo Anatoly > Bytes#LexicographicalComparerHolder#UnsafeComparer#compareTo() has dead code > ---------------------------------------------------------------------------- > > Key: HBASE-9589 > URL: https://issues.apache.org/jira/browse/HBASE-9589 > Project: HBase > Issue Type: Bug > Reporter: Ted Yu > Assignee: Gustavo Anatoly > Priority: Minor > > Starting with line 1177: > {code} > if (diff != 0) { > if (!littleEndian) { > return lessThanUnsigned(lw, rw) ? -1 : 1; > } > // Use binary search > int n = 0; > int y; > int x = (int) diff; > if (x == 0) { > x = (int) (diff >>> 32); > {code} > The value of "x" cannot be equal to 0. -- This message was sent by Atlassian JIRA (v6.1#6144)