This is an automated email from the ASF dual-hosted git repository. adutra 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 0b3a129bf Fix compilation warnings in AzureCredentialStorageIntegrationTest (#2231) 0b3a129bf is described below commit 0b3a129bf717b5877408a062e334ad5ab8ad4e2b Author: Alexandre Dutra <adu...@apache.org> AuthorDate: Fri Aug 1 12:04:59 2025 +0200 Fix compilation warnings in AzureCredentialStorageIntegrationTest (#2231) --- .../storage/azure/AzureCredentialStorageIntegrationTest.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/polaris-core/src/test/java/org/apache/polaris/service/storage/azure/AzureCredentialStorageIntegrationTest.java b/polaris-core/src/test/java/org/apache/polaris/service/storage/azure/AzureCredentialStorageIntegrationTest.java index 14bfcac1c..d6369d9dd 100644 --- a/polaris-core/src/test/java/org/apache/polaris/service/storage/azure/AzureCredentialStorageIntegrationTest.java +++ b/polaris-core/src/test/java/org/apache/polaris/service/storage/azure/AzureCredentialStorageIntegrationTest.java @@ -59,6 +59,7 @@ import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.ArgumentsProvider; import org.junit.jupiter.params.provider.ArgumentsSource; +import org.junit.jupiter.params.support.ParameterDeclarations; public class AzureCredentialStorageIntegrationTest extends BaseStorageIntegrationTest { @@ -115,7 +116,7 @@ public class AzureCredentialStorageIntegrationTest extends BaseStorageIntegratio boolean isBlobService = service.equals("blob"); List<String> allowedLoc = - Arrays.asList( + List.of( String.format( "abfss://container@icebergdfsstorageacct.%s.core.windows.net/polaris-test/", service)); @@ -186,7 +187,7 @@ public class AzureCredentialStorageIntegrationTest extends BaseStorageIntegratio String allowedPrefix = "polaris-test"; String blockedPrefix = "blocked-prefix"; List<String> allowedLoc = - Arrays.asList( + List.of( String.format( "abfss://container@icebergdfsstorageacct.%s.core.windows.net/%s", service, allowedPrefix)); @@ -256,7 +257,7 @@ public class AzureCredentialStorageIntegrationTest extends BaseStorageIntegratio String allowedPrefix = "polaris-test/scopedcreds/"; String blockedPrefix = "blocked-prefix"; List<String> allowedLoc = - Arrays.asList( + List.of( String.format( "abfss://container@icebergdfsstorageacct.%s.core.windows.net/%s", service, allowedPrefix)); @@ -401,7 +402,8 @@ public class AzureCredentialStorageIntegrationTest extends BaseStorageIntegratio protected static class AzureTestArgs implements ArgumentsProvider { @Override - public Stream<? extends Arguments> provideArguments(ExtensionContext extensionContext) { + public Stream<? extends Arguments> provideArguments( + ParameterDeclarations parameterDeclarations, ExtensionContext extensionContext) { return Stream.of( Arguments.of(/* allowedList= */ true, "blob"), Arguments.of(/* allowedList= */ false, "blob"),