HBASE-10022 Fix the HE_EQUALS_USE_HASHCODE warning under hbase-hadoop1-compat (Liang Xie)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1545250 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
35cea57fe5
commit
1b785677ba
|
@ -158,6 +158,11 @@ public class MetricsRegionSourceImpl implements MetricsRegionSource {
|
|||
return compareTo((MetricsRegionSourceImpl)obj) == 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return this.regionWrapper.getRegionName().hashCode();
|
||||
}
|
||||
|
||||
void snapshot(MetricsRecordBuilder mrb, boolean ignored) {
|
||||
if (closed) return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue