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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: