mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-03-04 04:19:09 +00:00
Fix formatting
This commit is contained in:
parent
e99b37a6cb
commit
35e5533a4b
@ -33,7 +33,8 @@ public final class ScopeAuthorizationManagerFactory {
|
||||
}
|
||||
|
||||
public static <T> AuthorityAuthorizationManager<T> hasAnyScope(String... scopes) {
|
||||
String[] mappedScopes = Arrays.stream(scopes).map((String s) -> "SCOPE_" + s).toArray(String[]::new);
|
||||
String[] mappedScopes = Arrays.stream(scopes).map((String s) -> "SCOPE_" + s)
|
||||
.toArray(String[]::new);
|
||||
return AuthorityAuthorizationManager.hasAnyAuthority(mappedScopes);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user