Skip to content

Commit aaaefb4

Browse files
committed
use linked hash map for consistent ordering
1 parent a0cfd03 commit aaaefb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/entitlement/src/main/java/org/elasticsearch/entitlement/runtime/policy/FileAccessTree.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public String toString() {
5454
}
5555

5656
static List<ExclusivePath> buildExclusivePathList(List<ExclusiveFileEntitlement> exclusiveFileEntitlements, PathLookup pathLookup) {
57-
Map<String, ExclusivePath> exclusivePaths = new HashMap<>();
57+
Map<String, ExclusivePath> exclusivePaths = new LinkedHashMap<>();
5858
for (ExclusiveFileEntitlement efe : exclusiveFileEntitlements) {
5959
for (FilesEntitlement.FileData fd : efe.filesEntitlement().filesData()) {
6060
if (fd.exclusive()) {

0 commit comments

Comments
 (0)