You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Duo Zhang (Jira)" <ji...@apache.org> on 2021/07/01 14:58:00 UTC

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

     [ https://issues.apache.org/jira/browse/HBASE-26035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Duo Zhang reassigned HBASE-26035:
---------------------------------

    Assignee: Almog Tavor

> Redundant null check in the compareTo function 
> -----------------------------------------------
>
>                 Key: HBASE-26035
>                 URL: https://issues.apache.org/jira/browse/HBASE-26035
>             Project: HBase
>          Issue Type: Bug
>          Components: metrics, Performance
>            Reporter: Almog Tavor
>            Assignee: Almog Tavor
>            Priority: Minor
>
> 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)