Skip to content

Commit fe39d06

Browse files
virajjasaniHarshitGupta11
authored andcommitted
HADOOP-17963. Replace Guava VisibleForTesting by Hadoop's own annotation in hadoop-yarn-project modules (apache#3541)
1 parent d933411 commit fe39d06

File tree

312 files changed

+343
-311
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

312 files changed

+343
-311
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/URL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
package org.apache.hadoop.yarn.api.records;
2020

21-
import org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting;
21+
import org.apache.hadoop.classification.VisibleForTesting;
2222

2323
import java.net.URI;
2424
import java.net.URISyntaxException;

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/HAUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import org.apache.hadoop.net.NetUtils;
2828
import org.apache.hadoop.yarn.exceptions.YarnRuntimeException;
2929

30-
import org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting;
30+
import org.apache.hadoop.classification.VisibleForTesting;
3131
import org.slf4j.Logger;
3232
import org.slf4j.LoggerFactory;
3333

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/util/resource/ResourceUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
package org.apache.hadoop.yarn.util.resource;
2020

21-
import org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting;
21+
import org.apache.hadoop.classification.VisibleForTesting;
2222
import org.apache.commons.lang3.StringUtils;
2323
import org.apache.hadoop.classification.InterfaceAudience;
2424
import org.apache.hadoop.classification.InterfaceStability;

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-distributedshell/src/main/java/org/apache/hadoop/yarn/applications/distributedshell/ApplicationMaster.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
import org.apache.hadoop.yarn.util.timeline.TimelineUtils;
129129
import org.apache.log4j.LogManager;
130130

131-
import org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting;
131+
import org.apache.hadoop.classification.VisibleForTesting;
132132
import com.sun.jersey.api.client.ClientHandlerException;
133133
import org.slf4j.Logger;
134134
import org.slf4j.LoggerFactory;

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-distributedshell/src/main/java/org/apache/hadoop/yarn/applications/distributedshell/Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
import org.apache.hadoop.yarn.util.resource.ResourceUtils;
9898
import org.apache.hadoop.yarn.util.resource.Resources;
9999
import org.apache.hadoop.yarn.util.timeline.TimelineUtils;
100-
import org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting;
100+
import org.apache.hadoop.classification.VisibleForTesting;
101101
import org.slf4j.Logger;
102102
import org.slf4j.LoggerFactory;
103103

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-api/src/main/java/org/apache/hadoop/yarn/service/client/SystemServiceManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
package org.apache.hadoop.yarn.service.client;
1818

19-
import org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting;
19+
import org.apache.hadoop.classification.VisibleForTesting;
2020
import org.apache.hadoop.conf.Configuration;
2121
import org.apache.hadoop.fs.FileStatus;
2222
import org.apache.hadoop.fs.FileSystem;

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/ClientAMService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
package org.apache.hadoop.yarn.service;
2020

21-
import org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting;
21+
import org.apache.hadoop.classification.VisibleForTesting;
2222
import org.apache.hadoop.conf.Configuration;
2323
import org.apache.hadoop.fs.CommonConfigurationKeysPublic;
2424
import org.apache.hadoop.ipc.Server;

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/ServiceManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
package org.apache.hadoop.yarn.service;
2020

21-
import org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting;
21+
import org.apache.hadoop.classification.VisibleForTesting;
2222
import org.apache.hadoop.thirdparty.com.google.common.base.Preconditions;
2323
import org.apache.hadoop.yarn.api.records.ContainerId;
2424
import org.apache.hadoop.yarn.event.AsyncDispatcher;

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/ServiceMaster.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
package org.apache.hadoop.yarn.service;
2020

21-
import org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting;
21+
import org.apache.hadoop.classification.VisibleForTesting;
2222
import org.apache.commons.cli.CommandLine;
2323
import org.apache.commons.cli.Options;
2424
import org.apache.commons.lang3.StringUtils;

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/client/ServiceClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
package org.apache.hadoop.yarn.service.client;
2020

21-
import org.apache.hadoop.thirdparty.com.google.common.annotations.VisibleForTesting;
21+
import org.apache.hadoop.classification.VisibleForTesting;
2222

2323
import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
2424
import org.apache.commons.compress.archivers.tar.TarArchiveOutputStream;

0 commit comments

Comments
 (0)