|
@@ -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();
|
|
|
|
|