From 35e5533a4be3a8a828b9011f9487de20c4e1fcac Mon Sep 17 00:00:00 2001 From: Mario Petrovski Date: Fri, 1 Sep 2023 15:39:32 +0200 Subject: [PATCH] Fix formatting --- .../security/oauth2/core/ScopeAuthorizationManagerFactory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/ScopeAuthorizationManagerFactory.java b/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/ScopeAuthorizationManagerFactory.java index 2734ff4f0a..7015550c18 100644 --- a/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/ScopeAuthorizationManagerFactory.java +++ b/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/ScopeAuthorizationManagerFactory.java @@ -33,7 +33,8 @@ public final class ScopeAuthorizationManagerFactory { } public static AuthorityAuthorizationManager 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); } }