You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by md...@apache.org on 2017/10/10 19:52:24 UTC

[2/2] hbase git commit: HBASE-18981 Address issues found by error-prone in hbase-client

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/2e368cf4
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2e368cf4
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2e368cf4

Branch: refs/heads/branch-2
Commit: 2e368cf46159a7ea0dfaac7784f625c9421aebb6
Parents: e268ec8
Author: Mike Drob <md...@apache.org>
Authored: Tue Oct 10 14:07:54 2017 -0500
Committer: Mike Drob <md...@apache.org>
Committed: Tue Oct 10 14:09:08 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/2e368cf4/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);
   }
 
   /**