Skip to content

Commit f658590

Browse files
naming nit
1 parent bc9f4be commit f658590

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authz/store/NativeRolesStore.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public void accept(Set<String> names, ActionListener<RoleRetrievalResult> listen
177177
getRoleDescriptors(names, listener);
178178
}
179179

180-
private Set<String> filterReservedRoles(Set<String> names) {
180+
private Set<String> filterReservedRoleNames(Set<String> names) {
181181
if (names == null || names.isEmpty()) {
182182
return names;
183183
}
@@ -199,7 +199,7 @@ public void getRoleDescriptors(Set<String> names, final ActionListener<RoleRetri
199199
return;
200200
}
201201

202-
final Set<String> rolesToGet = filterReservedRoles(names);
202+
final Set<String> rolesToGet = filterReservedRoleNames(names);
203203
if ((names != null && names.size() > 0) && (rolesToGet == null || rolesToGet.isEmpty())) {
204204
// if we have no roles to get, it means all requested roles were reserved.
205205
// we can short-circuit and return an empty set here.

0 commit comments

Comments
 (0)