mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-12 13:23:29 +00:00
Remove unnecessary instantiation in root
Fixes: gh-7635
This commit is contained in:
parent
97fd3d7c84
commit
4b4c6e612b
@ -17,7 +17,6 @@ package org.springframework.security.access.expression;
|
|||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import org.springframework.security.access.PermissionEvaluator;
|
import org.springframework.security.access.PermissionEvaluator;
|
||||||
@ -158,7 +157,6 @@ public abstract class SecurityExpressionRoot implements SecurityExpressionOperat
|
|||||||
|
|
||||||
private Set<String> getAuthoritySet() {
|
private Set<String> getAuthoritySet() {
|
||||||
if (roles == null) {
|
if (roles == null) {
|
||||||
roles = new HashSet<>();
|
|
||||||
Collection<? extends GrantedAuthority> userAuthorities = authentication
|
Collection<? extends GrantedAuthority> userAuthorities = authentication
|
||||||
.getAuthorities();
|
.getAuthorities();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user