diff --git a/src/main/java/org/opensearch/security/privileges/ActionPrivileges.java b/src/main/java/org/opensearch/security/privileges/ActionPrivileges.java index 08bf56aee3..853abaf577 100644 --- a/src/main/java/org/opensearch/security/privileges/ActionPrivileges.java +++ b/src/main/java/org/opensearch/security/privileges/ActionPrivileges.java @@ -868,7 +868,7 @@ static class StatefulIndexPrivileges { roles.getCEntries().keySet() ); CompactMapGroupBuilder> indexMapBuilder = - new CompactMapGroupBuilder<>(indices.keySet(), (k2) -> roleSetBuilder.createSubSetBuilder()); + new CompactMapGroupBuilder<>(indices.keySet(), (k2) -> roleSetBuilder.createSubSetBuilder()); top: for (Map.Entry entry : roles.getCEntries().entrySet()) { try { @@ -905,10 +905,7 @@ static class StatefulIndexPrivileges { CompactMapGroupBuilder.MapBuilder< String, DeduplicatingCompactSubSetBuilder.SubSetBuilder> indexToRoles = actionToIndexToRoles - .computeIfAbsent( - action, - k -> indexMapBuilder.createMapBuilder() - ); + .computeIfAbsent(action, k -> indexMapBuilder.createMapBuilder()); indexToRoles.get(indicesEntry.getKey()).add(roleName);