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:
nkeywal 2013-11-25 13:12:53 +00:00
parent 35cea57fe5
commit 1b785677ba
1 changed files with 5 additions and 0 deletions

View File

@ -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;