hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From md...@apache.org
Subject [1/2] hbase git commit: HBASE-18981 Address issues found by error-prone in hbase-client
Date Tue, 10 Oct 2017 19:52:23 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-2 e268ec8d7 -> 2e368cf46
  refs/heads/master 73b6bd028 -> 690ff38f5


HBASE-18981 Address issues found by error-prone in hbase-client


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/690ff38f
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/690ff38f
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/690ff38f

Branch: refs/heads/master
Commit: 690ff38f54d0de588465cda410ac4496cd9a3369
Parents: 73b6bd0
Author: Mike Drob <mdrob@apache.org>
Authored: Tue Oct 10 14:07:54 2017 -0500
Committer: Mike Drob <mdrob@apache.org>
Committed: Tue Oct 10 14:07:54 2017 -0500

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/690ff38f/hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java
index e566704..e8496a7 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java
@@ -2476,8 +2476,8 @@ public final class ProtobufUtil {
     switch (type) {
       case THROTTLE: return QuotaProtos.QuotaType.THROTTLE;
       case SPACE: return QuotaProtos.QuotaType.SPACE;
+      default: throw new RuntimeException("Invalid QuotaType " + type);
     }
-    throw new RuntimeException("Invalid QuotaType " + type);
   }
 
   /**


Mime
View raw message