Remove unnecessary instantiation in root

Fixes: gh-7635
This commit is contained in:
LeeHainie 2019-11-07 17:26:02 +08:00 committed by Eleftheria Stein-Kousathana
parent 97fd3d7c84
commit 4b4c6e612b
1 changed files with 0 additions and 2 deletions

View File

@ -17,7 +17,6 @@ package org.springframework.security.access.expression;
import java.io.Serializable;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import org.springframework.security.access.PermissionEvaluator;
@ -158,7 +157,6 @@ public abstract class SecurityExpressionRoot implements SecurityExpressionOperat
private Set<String> getAuthoritySet() {
if (roles == null) {
roles = new HashSet<>();
Collection<? extends GrantedAuthority> userAuthorities = authentication
.getAuthorities();