diff --git a/hadoop-build-tools/src/main/resources/checkstyle/checkstyle.xml b/hadoop-build-tools/src/main/resources/checkstyle/checkstyle.xml index 73012dd47a8..ca8d137dd5e 100644 --- a/hadoop-build-tools/src/main/resources/checkstyle/checkstyle.xml +++ b/hadoop-build-tools/src/main/resources/checkstyle/checkstyle.xml @@ -122,9 +122,8 @@ - - - + + diff --git a/pom.xml b/pom.xml index 659d2413f90..62f011f7082 100644 --- a/pom.xml +++ b/pom.xml @@ -189,7 +189,6 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x Use hadoop-common provided Sets rather than Guava provided Sets org.apache.hadoop.thirdparty.com.google.common.collect.Sets - com.google.common.collect.Sets @@ -197,15 +196,62 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x Use hadoop-common provided Lists rather than Guava provided Lists org.apache.hadoop.thirdparty.com.google.common.collect.Lists - com.google.common.collect.Lists true - Use hadoop-common provided VisibleForTesting rather than the one provided by Guava + Use hadoop-annotation provided VisibleForTesting rather than the one provided by Guava org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting - com.google.common.annotations.VisibleForTesting + + + + true + Use alternatives to Guava common classes + + com.google.common.** + + + + true + Use alternative to Guava provided BaseEncoding + + org.apache.hadoop.thirdparty.com.google.common.io.BaseEncoding + + + + true + Use alternative to Guava provided Optional + + org.apache.hadoop.thirdparty.com.google.common.base.Optional + + + + true + Use alternative to Guava provided Function + + org.apache.hadoop.thirdparty.com.google.common.base.Function + + + + true + Use alternative to Guava provided Predicate + + org.apache.hadoop.thirdparty.com.google.common.base.Predicate + + + + true + Use alternative to Guava provided Supplier + + org.apache.hadoop.thirdparty.com.google.common.base.Supplier + + + + true + Use alternative to Guava provided ImmutableListMultimap + + org.apache.hadoop.thirdparty.com.google.common.collect.ImmutableListMultimap