You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Almog Tavor (Jira)" <ji...@apache.org> on 2021/06/28 23:28:00 UTC

[jira] [Created] (HBASE-26035) Redundant null check in the compareTo function

Almog Tavor created HBASE-26035:
-----------------------------------

             Summary: Redundant null check in the compareTo function 
                 Key: HBASE-26035
                 URL: https://issues.apache.org/jira/browse/HBASE-26035
             Project: HBase
          Issue Type: Bug
            Reporter: Almog Tavor


Remove a redundant null check in the compareTo function 

{code:java}
if (!(source instanceof MetricsRegionSourceImpl)) {
      return -1;
    }

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

{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)