Skip to content

Commit 69be4e4

Browse files
MonkeyCanCodevchag
authored andcommitted
Use Iterable for realms in BootstrapCommand (apache#2956)
1 parent a5d9b34 commit 69be4e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/admin/src/main/java/org/apache/polaris/admintool/BootstrapCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ static class SchemaInputOptions {
100100
public Integer call() {
101101
try {
102102
RootCredentialsSet rootCredentialsSet;
103-
List<String> realms; // TODO Iterable
103+
Iterable<String> realms;
104104

105105
if (inputOptions.rootCredentialsOptions.fileOptions != null) {
106106
rootCredentialsSet =
107107
RootCredentialsSet.fromUri(
108108
inputOptions.rootCredentialsOptions.fileOptions.file.toUri());
109-
realms = rootCredentialsSet.credentials().keySet().stream().toList();
109+
realms = rootCredentialsSet.credentials().keySet();
110110
} else {
111111
realms = inputOptions.rootCredentialsOptions.stdinOptions.realms;
112112
rootCredentialsSet =

0 commit comments

Comments
 (0)