Skip to content

Commit 649c173

Browse files
committed
review: rename vars to credentialsProvider
1 parent 744a40d commit 649c173

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

polaris-core/src/main/java/org/apache/polaris/core/storage/aws/AwsCredentialsStorageIntegration.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@
4747
public class AwsCredentialsStorageIntegration
4848
extends InMemoryStorageIntegration<AwsStorageConfigurationInfo> {
4949
private final StsClient stsClient;
50-
private final Optional<AwsCredentialsProvider> credentials;
50+
private final Optional<AwsCredentialsProvider> credentialsProvider;
5151

5252
public AwsCredentialsStorageIntegration(StsClient stsClient) {
5353
this(stsClient, Optional.empty());
5454
}
5555

5656
public AwsCredentialsStorageIntegration(
57-
StsClient stsClient, Optional<AwsCredentialsProvider> credentials) {
57+
StsClient stsClient, Optional<AwsCredentialsProvider> credentialsProvider) {
5858
super(AwsCredentialsStorageIntegration.class.getName());
5959
this.stsClient = stsClient;
60-
this.credentials = credentials;
60+
this.credentialsProvider = credentialsProvider;
6161
}
6262

6363
/** {@inheritDoc} */
@@ -81,7 +81,8 @@ public EnumMap<StorageAccessProperty, String> getSubscopedCreds(
8181
allowedWriteLocations)
8282
.toJson())
8383
.durationSeconds(loadConfig(STORAGE_CREDENTIAL_DURATION_SECONDS));
84-
credentials.ifPresent(c -> request.overrideConfiguration(b -> b.credentialsProvider(c)));
84+
credentialsProvider.ifPresent(
85+
cp -> request.overrideConfiguration(b -> b.credentialsProvider(cp)));
8586
AssumeRoleResponse response = stsClient.assumeRole(request.build());
8687
EnumMap<StorageAccessProperty, String> credentialMap =
8788
new EnumMap<>(StorageAccessProperty.class);

0 commit comments

Comments
 (0)