From eb13cdd7edd8a53fb7d5c724875fcce2db202b87 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 311b1c0394b..a617083e486 100644 --- a/hbase-build-configuration/pom.xml +++ b/hbase-build-configuration/pom.xml @@ -83,6 +83,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 b61e79ba7ca..7ad797cf1f3 100644 --- a/hbase-checkstyle/src/main/resources/hbase/checkstyle.xml +++ b/hbase-checkstyle/src/main/resources/hbase/checkstyle.xml @@ -61,7 +61,6 @@ -