Skip to content

Commit

Permalink
Change to use copyof in getSecurityRoles in AuthCredentials class
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <jiallian@amazon.com>
  • Loading branch information
RyanL1997 committed Aug 25, 2023
1 parent 308f269 commit a805843
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public Set<String> getBackendRoles() {
* @return Defensive copy of the security roles this user is member of.
*/
public Set<String> getSecurityRoles() {
return new HashSet<String>(securityRoles);
return Set.copyOf(securityRoles);
}

public boolean isComplete() {
Expand Down

0 comments on commit a805843

Please sign in to comment.