HBASE-18980 Suppress SelfComparison error in tests

This commit is contained in:
Mike Drob 2017-10-10 11:20:16 -05:00
parent 2828427219
commit 739ca50e9c
2 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@ import org.junit.experimental.categories.Category;
@Category({MetricsTests.class, SmallTests.class})
public class TestMetricsRegionSourceImpl {
@SuppressWarnings("SelfComparison")
@Test
public void testCompareToHashCodeEquals() throws Exception {
MetricsRegionServerSourceFactory fact = CompatibilitySingletonFactory.getInstance(MetricsRegionServerSourceFactory.class);

View File

@ -34,6 +34,7 @@ import org.junit.experimental.categories.Category;
@Category({MetricsTests.class, SmallTests.class})
public class TestMetricsTableSourceImpl {
@SuppressWarnings("SelfComparison")
@Test
public void testCompareToHashCode() throws Exception {
MetricsRegionServerSourceFactory metricsFact =