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