We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51a4537 commit 8682859Copy full SHA for 8682859
service/common/src/main/java/org/apache/polaris/service/context/RealmContextConfiguration.java
@@ -19,7 +19,7 @@
19
package org.apache.polaris.service.context;
20
21
import jakarta.validation.constraints.Size;
22
-import java.util.Set;
+import java.util.List;
23
24
public interface RealmContextConfiguration {
25
@@ -28,13 +28,13 @@ public interface RealmContextConfiguration {
28
* considered the default realm.
29
*/
30
@Size(min = 1)
31
- Set<String> realms();
+ List<String> realms();
32
33
/** The header name that contains the realm identifier. */
34
String headerName();
35
36
/** The default realm to use when no realm is specified. */
37
default String defaultRealm() {
38
- return realms().iterator().next();
+ return realms().getFirst();
39
}
40
0 commit comments