[
https://issues.apache.org/jira/browse/HBASE-26035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Duo Zhang resolved HBASE-26035.
-------------------------------
Hadoop Flags: Reviewed
Resolution: Fixed
Pushed to branch-2.3+.
Thanks [~almogtavor] for contributing.
> 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
> Fix For: 3.0.0-alpha-1, 2.5.0, 2.3.6, 2.4.5
>
>
> 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)