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 86828599 nit: fix RealmContextConfiguration.defaultRealm (#798)
86828599 is described below
commit 8682859914a793b1285efe9d387ec6322579f3d9
Author: Alexandre Dutra <[email protected]>
AuthorDate: Thu Jan 16 14:11:53 2025 +0100
nit: fix RealmContextConfiguration.defaultRealm (#798)
---
.../apache/polaris/service/context/RealmContextConfiguration.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/service/common/src/main/java/org/apache/polaris/service/context/RealmContextConfiguration.java
b/service/common/src/main/java/org/apache/polaris/service/context/RealmContextConfiguration.java
index 2e4735e2..08599e02 100644
---
a/service/common/src/main/java/org/apache/polaris/service/context/RealmContextConfiguration.java
+++
b/service/common/src/main/java/org/apache/polaris/service/context/RealmContextConfiguration.java
@@ -19,7 +19,7 @@
package org.apache.polaris.service.context;
import jakarta.validation.constraints.Size;
-import java.util.Set;
+import java.util.List;
public interface RealmContextConfiguration {
@@ -28,13 +28,13 @@ public interface RealmContextConfiguration {
* considered the default realm.
*/
@Size(min = 1)
- Set<String> realms();
+ List<String> realms();
/** The header name that contains the realm identifier. */
String headerName();
/** The default realm to use when no realm is specified. */
default String defaultRealm() {
- return realms().iterator().next();
+ return realms().getFirst();
}
}