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:23 UTC

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

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 <md...@apache.org>
Authored: Tue Oct 10 14:07:54 2017 -0500
Committer: Mike Drob <md...@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);
   }
 
   /**


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

Posted by md...@apache.org.
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);
   }
 
   /**