HBASE-18980 Suppress SelfComparison error in tests

This commit is contained in:
Mike Drob 2017-10-10 11:20:16 -05:00
parent 8597b19b3d
commit 73b6bd0283
2 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,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 =