HBASE-18980 Suppress SelfComparison error in tests
This commit is contained in:
parent
8597b19b3d
commit
73b6bd0283
|
@ -32,6 +32,7 @@ import org.junit.experimental.categories.Category;
|
||||||
@Category({MetricsTests.class, SmallTests.class})
|
@Category({MetricsTests.class, SmallTests.class})
|
||||||
public class TestMetricsRegionSourceImpl {
|
public class TestMetricsRegionSourceImpl {
|
||||||
|
|
||||||
|
@SuppressWarnings("SelfComparison")
|
||||||
@Test
|
@Test
|
||||||
public void testCompareToHashCodeEquals() throws Exception {
|
public void testCompareToHashCodeEquals() throws Exception {
|
||||||
MetricsRegionServerSourceFactory fact = CompatibilitySingletonFactory.getInstance(MetricsRegionServerSourceFactory.class);
|
MetricsRegionServerSourceFactory fact = CompatibilitySingletonFactory.getInstance(MetricsRegionServerSourceFactory.class);
|
||||||
|
|
|
@ -34,6 +34,7 @@ import org.junit.experimental.categories.Category;
|
||||||
@Category({MetricsTests.class, SmallTests.class})
|
@Category({MetricsTests.class, SmallTests.class})
|
||||||
public class TestMetricsTableSourceImpl {
|
public class TestMetricsTableSourceImpl {
|
||||||
|
|
||||||
|
@SuppressWarnings("SelfComparison")
|
||||||
@Test
|
@Test
|
||||||
public void testCompareToHashCode() throws Exception {
|
public void testCompareToHashCode() throws Exception {
|
||||||
MetricsRegionServerSourceFactory metricsFact =
|
MetricsRegionServerSourceFactory metricsFact =
|
||||||
|
|
Loading…
Reference in New Issue