From 7b4359657f8772d1bc34d73ea1115b97627a7840 Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Tue, 20 Oct 2020 23:25:24 +0900 Subject: [PATCH] HADOOP-17315. Use shaded guava in ClientCache.java (#2398) Added checkstyle rules to warn guava imports --- .../src/main/resources/checkstyle/checkstyle.xml | 4 +--- .../src/main/java/org/apache/hadoop/ipc/ClientCache.java | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/hadoop-build-tools/src/main/resources/checkstyle/checkstyle.xml b/hadoop-build-tools/src/main/resources/checkstyle/checkstyle.xml index 96e28496d7..0ff47b887d 100644 --- a/hadoop-build-tools/src/main/resources/checkstyle/checkstyle.xml +++ b/hadoop-build-tools/src/main/resources/checkstyle/checkstyle.xml @@ -121,9 +121,7 @@ - - + diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/ClientCache.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/ClientCache.java index 9c02c459e5..94a0f04060 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/ClientCache.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/ClientCache.java @@ -29,7 +29,7 @@ import org.apache.hadoop.io.ObjectWritable; import org.apache.hadoop.io.Writable; -import com.google.common.annotations.VisibleForTesting; +import org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting; /* Cache a client using its socket factory as the hash key */ @InterfaceAudience.LimitedPrivate({"HDFS", "MapReduce"})