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

Redundant null check in the compareTo function

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      Remove a redundant null check in the compareTo function

      if (!(source instanceof MetricsRegionSourceImpl)) {
            return -1;
          }
      
          MetricsRegionSourceImpl impl = (MetricsRegionSourceImpl) source;
          if (impl == null) {
            return -1;
          }
      
      

      Attachments

        Activity

          People

            almogtavor Almog Tavor
            almogtavor Almog Tavor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: