Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-9589

Bytes#LexicographicalComparerHolder#UnsafeComparer#compareTo() has dead code

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Starting with line 1177:

                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);
      

      The value of "x" cannot be equal to 0.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: