You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2019/11/04 18:08:17 UTC

[hbase] branch branch-1 updated: HBASE-23246 Fix error prone warning in TestMetricsUserSourceImpl (#789)

This is an automated email from the ASF dual-hosted git repository.

apurtell pushed a commit to branch branch-1
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-1 by this push:
     new 3f9ce86  HBASE-23246 Fix error prone warning in TestMetricsUserSourceImpl (#789)
3f9ce86 is described below

commit 3f9ce864b554e33e11bd2e4be31fd6a6149491df
Author: Andrew Purtell <ap...@apache.org>
AuthorDate: Mon Nov 4 10:08:11 2019 -0800

    HBASE-23246 Fix error prone warning in TestMetricsUserSourceImpl (#789)
    
    Signed-off-by: Sean Busbey <bu...@apache.org>
    Signed-off-by: Guangxu Cheng <gu...@gmail.com>
---
 .../org/apache/hadoop/hbase/regionserver/TestMetricsUserSourceImpl.java | 2 --
 1 file changed, 2 deletions(-)

diff --git a/hbase-hadoop2-compat/src/test/java/org/apache/hadoop/hbase/regionserver/TestMetricsUserSourceImpl.java b/hbase-hadoop2-compat/src/test/java/org/apache/hadoop/hbase/regionserver/TestMetricsUserSourceImpl.java
index 3155e66..aa8c3d7 100644
--- a/hbase-hadoop2-compat/src/test/java/org/apache/hadoop/hbase/regionserver/TestMetricsUserSourceImpl.java
+++ b/hbase-hadoop2-compat/src/test/java/org/apache/hadoop/hbase/regionserver/TestMetricsUserSourceImpl.java
@@ -47,10 +47,8 @@ public class TestMetricsUserSourceImpl {
     assertTrue(one.compareTo(two) != 0);
     assertTrue(two.compareTo(one) != 0);
     assertTrue(two.compareTo(one) != one.compareTo(two));
-    assertTrue(two.compareTo(two) == 0);
   }
 
-
   @Test (expected = RuntimeException.class)
   public void testNoGetRegionServerMetricsSourceImpl() throws Exception {
     // This should throw an exception because MetricsUserSourceImpl should only