Skip to content

Commit

Permalink
Fix inefficient iterators in Text Config Realm
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemers authored Oct 17, 2020
2 parents 1ad362a + 638e639 commit f819f32
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ protected void processRoleDefinitions(Map<String, String> roleDefs) {
if (roleDefs == null || roleDefs.isEmpty()) {
return;
}
for (String rolename : roleDefs.keySet()) {
String value = roleDefs.get(rolename);
for (Map.Entry<String,String> entry : roleDefs.entrySet()) {
String rolename = entry.getKey();
String value = entry.getValue();

SimpleRole role = getRole(rolename);
if (role == null) {
Expand Down Expand Up @@ -177,9 +178,9 @@ protected void processUserDefinitions(Map<String, String> userDefs) {
if (userDefs == null || userDefs.isEmpty()) {
return;
}
for (String username : userDefs.keySet()) {

String value = userDefs.get(username);
for (Map.Entry<String,String> entry : userDefs.entrySet()) {
String username = entry.getKey();
String value = entry.getValue();

String[] passwordAndRolesArray = StringUtils.split(value);

Expand Down

0 comments on commit f819f32

Please sign in to comment.