HBase
  1. HBase
  2. HBASE-9589

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor 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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Ted Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development