Skip to content

Commit

Permalink
Replace parallelStream with regular forEach in User
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcolon021 committed Jul 8, 2024
1 parent 94534e8 commit 6814ccc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public Set<Privilege> getTotalPrivilege(){
return null;

Set<Privilege> privileges = new HashSet<>();
roles.parallelStream().forEach(r -> privileges.addAll(r.getPrivileges()));
roles.forEach(r -> privileges.addAll(r.getPrivileges()));
return privileges;
}

Expand Down Expand Up @@ -181,7 +181,7 @@ public Set<Privilege> getPrivilegesByApplication(Application application){
return null;

Set<Privilege> privileges = new HashSet<>();
roles.parallelStream().forEach(r -> privileges.addAll(r.getPrivileges()
roles.forEach(r -> privileges.addAll(r.getPrivileges()
.stream()
.filter(p -> application.getUuid()
.equals((p.getApplication()==null)?
Expand Down

0 comments on commit 6814ccc

Please sign in to comment.