Skip to content

Commit 586affe

Browse files
committed
[grid] TomlConfig returns sorted config details
1 parent 8905eb2 commit 586affe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

java/src/org/openqa/selenium/grid/config/TomlConfig.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import java.util.List;
3737
import java.util.Optional;
3838
import java.util.Set;
39+
import java.util.stream.Collectors;
3940

4041
public class TomlConfig implements Config {
4142

@@ -94,6 +95,8 @@ public Optional<List<String>> getAll(String section, String option) {
9495
.map(item -> (TomlTable)item)
9596
.forEach(tomlTable -> tomlTable.toMap().entrySet().stream()
9697
.map(entry -> String.format("%s=%s", entry.getKey(), entry.getValue()))
98+
.collect(Collectors.toList())
99+
.stream().sorted()
97100
.forEach(toReturn::add));
98101
return Optional.of(toReturn);
99102
}

0 commit comments

Comments
 (0)