hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-9589) Bytes#LexicographicalComparerHolder#UnsafeComparer#compareTo() has dead code
Date Thu, 19 Sep 2013 23:35:51 GMT
Ted Yu created HBASE-9589:
-----------------------------

             Summary: 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
            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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message