From f2efc6e0afccc9aef1486afbed0d6225a39b32af Mon Sep 17 00:00:00 2001 From: piotr-goetz-duco Date: Wed, 25 Sep 2024 14:44:41 +0200 Subject: [PATCH] Changed order of method calls --- .../awssdk/auth/credentials/ProfileCredentialsProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/auth/src/main/java/software/amazon/awssdk/auth/credentials/ProfileCredentialsProvider.java b/core/auth/src/main/java/software/amazon/awssdk/auth/credentials/ProfileCredentialsProvider.java index 95d6bb88afb4..203f0cbce83c 100644 --- a/core/auth/src/main/java/software/amazon/awssdk/auth/credentials/ProfileCredentialsProvider.java +++ b/core/auth/src/main/java/software/amazon/awssdk/auth/credentials/ProfileCredentialsProvider.java @@ -122,8 +122,8 @@ public AwsCredentials resolveCredentials() { if (shouldUpdateCredentialsProvider(cachedOrRefreshedProfileFile)) { synchronized (credentialsProviderLock) { if (shouldUpdateCredentialsProvider(cachedOrRefreshedProfileFile)) { - currentProfileFile = cachedOrRefreshedProfileFile; handleProfileFileReload(cachedOrRefreshedProfileFile); + currentProfileFile = cachedOrRefreshedProfileFile; } } }