ahmarsuhail commented on code in PR #4698:
URL: https://github.com/apache/hadoop/pull/4698#discussion_r943330620
##########
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AUtils.java:
##########
@@ -551,13 +557,14 @@ public static long dateToLong(final Date date) {
/**
* The standard AWS provider list for AWS connections.
*/
+ @SuppressWarnings("deprecation")
public static final List<Class<?>>
STANDARD_AWS_PROVIDERS = Collections.unmodifiableList(
Arrays.asList(
TemporaryAWSCredentialsProvider.class,
SimpleAWSCredentialsProvider.class,
EnvironmentVariableCredentialsProvider.class,
- IAMInstanceCredentialsProvider.class));
Review Comment:
using fully qualified class names to avoid deprecation warnings that happen
on importing a deprecated class. not sure if there is a better way to suppress
import warnings?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]