From 4b0bbd839e56762737a5a48e5206e310abf2557c Mon Sep 17 00:00:00 2001 From: Mike Drob Date: Fri, 8 Jun 2018 16:57:15 -0500 Subject: [PATCH] HBASE-20707 Move MissingSwitchDefault case check Perform this check using error-prone instead of checkstyle because the former can handle enum switches somewhat more intelligently. --- hbase-build-configuration/pom.xml | 1 + hbase-checkstyle/src/main/resources/hbase/checkstyle.xml | 1 - .../main/java/org/apache/hadoop/hbase/util/JenkinsHash.java | 2 +- .../main/java/org/apache/hadoop/hbase/util/MurmurHash3.java | 2 ++ .../hadoop/hbase/security/visibility/ExpressionParser.java | 3 ++- .../hadoop/hbase/master/TestClusterStatusPublisher.java | 1 + .../hadoop/hbase/master/assignment/TestAssignmentManager.java | 4 ++++ 7 files changed, 11 insertions(+), 3 deletions(-) diff --git a/hbase-build-configuration/pom.xml b/hbase-build-configuration/pom.xml index cf688cbdec0..a852d8bb7e0 100644 --- a/hbase-build-configuration/pom.xml +++ b/hbase-build-configuration/pom.xml @@ -84,6 +84,7 @@ -XepDisableWarningsInGeneratedCode -Xep:FallThrough:OFF -Xep:ClassNewInstance:ERROR + -Xep:MissingDefault:ERROR diff --git a/hbase-checkstyle/src/main/resources/hbase/checkstyle.xml b/hbase-checkstyle/src/main/resources/hbase/checkstyle.xml index c77d46b93fc..fa43c62ad0c 100644 --- a/hbase-checkstyle/src/main/resources/hbase/checkstyle.xml +++ b/hbase-checkstyle/src/main/resources/hbase/checkstyle.xml @@ -60,7 +60,6 @@ -