This is an automated email from the ASF dual-hosted git repository.

dimas pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git


The following commit(s) were added to refs/heads/main by this push:
     new 1cb85e023 chore: Avoid deprecated 
`DefaultCredentialsProvider.create()` (#2119)
1cb85e023 is described below

commit 1cb85e0234c4b2b455fec3709c489e2885ed2eb5
Author: Dmitri Bourlatchkov <dmitri.bourlatch...@gmail.com>
AuthorDate: Tue Jul 15 18:36:53 2025 -0400

    chore: Avoid deprecated `DefaultCredentialsProvider.create()` (#2119)
    
    Use `DefaultCredentialsProvider.builder().build()` as suggested by AWS SDK 
javadoc.
---
 .../java/org/apache/polaris/service/storage/StorageConfiguration.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/service/common/src/main/java/org/apache/polaris/service/storage/StorageConfiguration.java
 
b/service/common/src/main/java/org/apache/polaris/service/storage/StorageConfiguration.java
index fbe3061d4..eb665ee30 100644
--- 
a/service/common/src/main/java/org/apache/polaris/service/storage/StorageConfiguration.java
+++ 
b/service/common/src/main/java/org/apache/polaris/service/storage/StorageConfiguration.java
@@ -85,7 +85,7 @@ public interface StorageConfiguration {
       return StaticCredentialsProvider.create(
           AwsBasicCredentials.create(awsAccessKey().get(), 
awsSecretKey().get()));
     } else {
-      return DefaultCredentialsProvider.create();
+      return DefaultCredentialsProvider.builder().build();
     }
   }
 

Reply via email to